mirror of
https://github.com/heartexlabs/labelImg.git
synced 2023-05-24 23:26:06 +03:00
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:
committed by
GitHub
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:
|
||||
exec(f.read(), about)
|
||||
|
||||
with open('README.rst') as readme_file:
|
||||
readme = readme_file.read()
|
||||
|
||||
with open('HISTORY.rst') as history_file:
|
||||
history = history_file.read()
|
||||
with open("README.rst", "rb") as readme_file:
|
||||
readme = readme_file.read().decode("UTF-8")
|
||||
|
||||
with open("HISTORY.rst", "rb") as history_file:
|
||||
history = history_file.read().decode("UTF-8")
|
||||
|
||||
# OS specific settings
|
||||
SET_REQUIRES = []
|
||||
|
||||
Reference in New Issue
Block a user