From 0d390870488e113b7272a349803b7d37dae3e7c2 Mon Sep 17 00:00:00 2001 From: Krystian Kuzniarek Date: Sat, 2 Nov 2019 01:17:00 +0100 Subject: [PATCH] pump.py: force generating Unix line feed --- googlemock/scripts/pump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/googlemock/scripts/pump.py b/googlemock/scripts/pump.py index 5523a19d..af9f3006 100755 --- a/googlemock/scripts/pump.py +++ b/googlemock/scripts/pump.py @@ -843,7 +843,7 @@ def main(argv): if output_file_path == '-': print(output_str,) else: - output_file = io.open(output_file_path, 'w') + output_file = io.open(output_file_path, 'w', newline='\n') output_file.write(u'// This file was GENERATED by command:\n') output_file.write(u'// %s %s\n' % (os.path.basename(__file__), os.path.basename(file_path)))