pump.py: force generating Unix line feed
This commit is contained in:
parent
e08a460277
commit
0d39087048
@ -843,7 +843,7 @@ def main(argv):
|
|||||||
if output_file_path == '-':
|
if output_file_path == '-':
|
||||||
print(output_str,)
|
print(output_str,)
|
||||||
else:
|
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'// This file was GENERATED by command:\n')
|
||||||
output_file.write(u'// %s %s\n' %
|
output_file.write(u'// %s %s\n' %
|
||||||
(os.path.basename(__file__), os.path.basename(file_path)))
|
(os.path.basename(__file__), os.path.basename(file_path)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user