[PATCH] D130296: utils/update_cc_test_checks.py: Use native line endings
Matheus Izvekov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 21 12:24:04 PDT 2022
mizvekov created this revision.
Herald added a project: All.
mizvekov requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Signed-off-by: Matheus Izvekov <mizvekov at gmail.com>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130296
Files:
llvm/utils/update_cc_test_checks.py
Index: llvm/utils/update_cc_test_checks.py
===================================================================
--- llvm/utils/update_cc_test_checks.py
+++ llvm/utils/update_cc_test_checks.py
@@ -414,7 +414,7 @@
output_lines, global_vars_seen_dict, True, False)
common.debug('Writing %d lines to %s...' % (len(output_lines), ti.path))
with open(ti.path, 'wb') as f:
- f.writelines(['{}\n'.format(l).encode('utf-8') for l in output_lines])
+ f.writelines(['{}{}'.format(l, os.linesep).encode('utf-8') for l in output_lines])
return 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130296.446601.patch
Type: text/x-patch
Size: 591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220721/b9f3a90f/attachment.bin>
More information about the llvm-commits
mailing list