Merge pull request #16704 from bgruening/universial_newline

[23.1] FileInput no longer accept 'U' in the file mode
This commit is contained in:
Marius van den Beek
2023-09-17 09:17:36 +02:00
committed by GitHub
+1 -1
View File
@@ -22,7 +22,7 @@ def __main__():
from_ch += "+"
skipped = 0
with open(args[0], "rU") as fin:
with open(args[0]) as fin:
with open(args[2], "w") as fout:
for line in fin:
if options.strip: