diff options
Diffstat (limited to 'scripts/FileGenerator.py')
-rw-r--r-- | scripts/FileGenerator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/FileGenerator.py b/scripts/FileGenerator.py index aaa0a8ac9..e7b0f236d 100644 --- a/scripts/FileGenerator.py +++ b/scripts/FileGenerator.py @@ -175,7 +175,7 @@ def UpdateLineInFile(path, linePrefix, lineReplace): def ReadFileAsList(path): """Read all the lnes in the file and return as a list of strings without line ends. """ - with codecs.open(path, "rU", "utf-8") as f: + with codecs.open(path, "r", "utf-8") as f: return [l.rstrip('\n') for l in f] def UpdateFileFromLines(path, lines, lineEndToUse): |