aboutsummaryrefslogtreecommitdiff
path: root/contrib/mklog.py
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-12-11 17:18:12 +0100
committerMartin Liska <mliska@suse.cz>2022-12-11 17:22:25 +0100
commitb045179973161115c7ea029b2788f5156fc55cda (patch)
treefa6e261f5badad137e27f1589c0b4d5b4bfb44b0 /contrib/mklog.py
parent6d799f0aed18be25a5c908499b6411ab6d06b78c (diff)
downloadgcc-b045179973161115c7ea029b2788f5156fc55cda.zip
gcc-b045179973161115c7ea029b2788f5156fc55cda.tar.gz
gcc-b045179973161115c7ea029b2788f5156fc55cda.tar.bz2
unidiff: use newline='\n' argument
In order to support CR on a line, we need to open files with newline='\n' as our line endings supposed to be of UNIX style. contrib/ChangeLog: * check_GNU_style.py: Use newline=\n. * check_GNU_style_lib.py: Simplify. * gcc-changelog/git_commit.py: Fix issues seen Rust patchset. * gcc-changelog/git_email.py: Use newline argument. * gcc-changelog/test_email.py: New test. * gcc-changelog/test_patches.txt: New test. * mklog.py: Use newline argument.
Diffstat (limited to 'contrib/mklog.py')
-rwxr-xr-xcontrib/mklog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/mklog.py b/contrib/mklog.py
index 91c0dcd..3a6ec68 100755
--- a/contrib/mklog.py
+++ b/contrib/mklog.py
@@ -361,7 +361,7 @@ if __name__ == '__main__':
if args.directory:
root = args.directory
- data = open(args.input) if args.input else sys.stdin
+ data = open(args.input, newline='\n') if args.input else sys.stdin
if args.update_copyright:
update_copyright(data)
else: