projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc840b2
)
Switch to opening the temp file in binary mode
author
Aaron Ballman
<aaron@aaronballman.com>
Tue, 3 Dec 2019 20:31:46 +0000
(15:31 -0500)
committer
Aaron Ballman
<aaron@aaronballman.com>
Tue, 3 Dec 2019 20:31:46 +0000
(15:31 -0500)
This corrects an issue where the script would write the file with the
incorrect line endings on Windows.
clang/test/AST/gen_ast_dump_json_test.py
patch
|
blob
|
history
diff --git
a/clang/test/AST/gen_ast_dump_json_test.py
b/clang/test/AST/gen_ast_dump_json_test.py
index
87b3318
..
f783c79
100644
(file)
--- a/
clang/test/AST/gen_ast_dump_json_test.py
+++ b/
clang/test/AST/gen_ast_dump_json_test.py
@@
-180,7
+180,7
@@
def process_file(source_file, clang_binary, cmdline_filters, cmdline_opts,
filter_json(j, filters, out_asts)
- with tempfile.NamedTemporaryFile("w", delete=False) as f:
+ with tempfile.NamedTemporaryFile("w
b
", delete=False) as f:
with open(source_file, "r") as srcf:
for line in srcf.readlines():
# copy up to the note: