Skip to content
This repository was archived by the owner on Jul 19, 2018. It is now read-only.

Commit 68df2c9

Browse files
committed
scripts: Specify utf-8 encoding for db file
Change-Id: I0a76a6d9766041a9f70053e7385517c0b1d7022c
1 parent 1a01f47 commit 68df2c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/spec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def genDB(self, db_file):
279279
outfile.write("\n".join(db_lines))
280280
def readDB(self, db_file):
281281
"""Read a db file into a dict, refer to genDB function above for format of each line"""
282-
with open(db_file, "r") as infile:
282+
with open(db_file, "r", encoding='utf-8') as infile:
283283
for line in infile:
284284
line = line.strip()
285285
if line.startswith('#') or '' == line:

0 commit comments

Comments
 (0)