Always read line-by-line with mode rU

This commit is contained in:
Tom Payne
2014-02-23 13:50:54 +01:00
parent 1d2c88efb9
commit 3aedca7bd6
4 changed files with 10 additions and 10 deletions

View File

@@ -113,7 +113,7 @@ def main(argv):
for arg in args:
in_comment = False
object_literal = None
for line in open(arg):
for line in open(arg, 'rU'):
line = line.strip()
if not line:
continue