First read the file in binary mode. Then, convert to utf-8. Fix for https://github.com/tzutalin/labelImg/issues/676
This commit is contained in:
parent
c35f09747a
commit
34ed6a3a2a
9
setup.py
9
setup.py
@ -16,12 +16,11 @@ about = {}
|
|||||||
with open(os.path.join(here, 'libs', '__init__.py')) as f:
|
with open(os.path.join(here, 'libs', '__init__.py')) as f:
|
||||||
exec(f.read(), about)
|
exec(f.read(), about)
|
||||||
|
|
||||||
with open('README.rst') as readme_file:
|
with open("README.rst", "rb") as readme_file:
|
||||||
readme = readme_file.read()
|
readme = readme_file.read().decode("UTF-8")
|
||||||
|
|
||||||
with open('HISTORY.rst') as history_file:
|
|
||||||
history = history_file.read()
|
|
||||||
|
|
||||||
|
with open("HISTORY.rst", "rb") as history_file:
|
||||||
|
history = history_file.read().decode("UTF-8")
|
||||||
|
|
||||||
# OS specific settings
|
# OS specific settings
|
||||||
SET_REQUIRES = []
|
SET_REQUIRES = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user