Merge pull request #662 from TheGoddessInari/master

setup.py: Match file.open encoding with the source code encoding.
This commit is contained in:
Yuri Bochkarev 2018-06-02 23:12:06 +03:00 committed by GitHub
commit fb890e9756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ def read_file(filename, alt=None):
lines = None
try:
with open(filename) as f:
with open(filename, encoding='utf-8') as f:
lines = f.read()
except IOError:
lines = [] if alt is None else alt