diff options
-rw-r--r-- | scripts/Face.py | 2 | ||||
-rw-r--r-- | scripts/FileGenerator.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Face.py b/scripts/Face.py index 1559dfccd..21fc67995 100644 --- a/scripts/Face.py +++ b/scripts/Face.py @@ -144,4 +144,4 @@ class Face: name, value = featureVal.split("=", 1) self.aliases[name] = value currentComment = [] - + file.close() 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): |