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

@@ -8,7 +8,7 @@ def main(argv):
examples = {}
requires = set()
for filename in argv[1:]:
lines = open(filename).readlines()
lines = open(filename, 'rU').readlines()
if len(lines) > 0 and lines[0].startswith('// NOCOMPILE'):
continue
requires.update(line for line in lines if line.startswith('goog.require'))