Fix UnicodeDecodeError during installation (#86)

* fix UnicodeDecodeError during installation

* simplify opening with utf-8 encoding
This commit is contained in:
Elvis Yu-Jing Lin
2018-05-23 23:46:00 +08:00
committed by Mike Fährmann
parent f3d770d4e2
commit aab2391c7b

View File

@@ -14,7 +14,7 @@ except ImportError:
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()
# get version without importing the package