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:
parent
d30dc8109c
commit
dc606daade
2
setup.py
2
setup.py
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user