Skip to content
Snippets Groups Projects
Commit a038d43b authored by Ben Gamari's avatar Ben Gamari
Browse files

CheckUniques: Decode source files as UTF-8

parent e8d62711
No related merge requests found
......@@ -12,7 +12,7 @@ def find_uniques(source_files):
uniques = defaultdict(lambda: defaultdict(lambda: set()))
unique_re = re.compile(r"([\w\d]+)\s*=\s*mk([\w\d']+)Unique\s+(\d+)")
for f in source_files:
ms = unique_re.findall(open(f).read())
ms = unique_re.findall(open(f).read().decode('utf8'))
for m in ms:
name = m[0]
_type = m[1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment