Skip to content

Commit 34ed6a3

Browse files
Change encoding. Fix for HumanSignal#676 (HumanSignal#722)
First read the file in binary mode. Then, convert to utf-8. Fix for HumanSignal#676
1 parent c35f097 commit 34ed6a3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

setup.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
with open(os.path.join(here, 'libs', '__init__.py')) as f:
1717
exec(f.read(), about)
1818

19-
with open('README.rst') as readme_file:
20-
readme = readme_file.read()
21-
22-
with open('HISTORY.rst') as history_file:
23-
history = history_file.read()
19+
with open("README.rst", "rb") as readme_file:
20+
readme = readme_file.read().decode("UTF-8")
2421

22+
with open("HISTORY.rst", "rb") as history_file:
23+
history = history_file.read().decode("UTF-8")
2524

2625
# OS specific settings
2726
SET_REQUIRES = []

0 commit comments

Comments
 (0)