Open buku.py in UTF-8 mode

buku.py is an UTF-8 file but setup.py opened it in ASCII mode instead of UTF-8 mode.
This commit is contained in:
SZ Lin 2016-11-30 16:29:54 +08:00 committed by GitHub
parent d30dc8109c
commit dc606daade

View File

@ -9,7 +9,7 @@ if sys.version_info < (3, 3):
print('ERROR: Buku requires at least Python 3.3 to run.')
sys.exit(1)
with open('buku.py') as f:
with open('buku.py', encoding='utf-8') as f:
version = re.search('__version__ = \'([^\']+)\'', f.read()).group(1)
with open('README.md', encoding='utf-8') as f: