Read existing generated files with correct encoding

Otherwise we cannot parse the comments
This commit is contained in:
Adrian Heine 2020-05-11 21:54:04 +02:00 committed by Rick Waldron
parent dd848d4c9d
commit 271dad7c0a
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class Test:
def load(self, prefix = None):
location = os.path.join(prefix or '', self.file_name)
with open(location, 'rb') as handle:
with open(location, 'r') as handle:
self.source = handle.read()
self._parse()