Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66efe2e

Browse files
committed
Use utf-8 when reading README for package description.
This otherwise will fail in non-UTF8 locales, and Python 3.6 (which doesn't coerce back to UTF8.) Fixes #16670.
1 parent f388570 commit 66efe2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def run(self):
224224
fd.write(''.join(template_lines))
225225

226226
# Use Readme as long description
227-
with open('README.rst') as fd:
227+
with open('README.rst', encoding='utf-8') as fd:
228228
long_description = fd.read()
229229

230230
# Finally, pass this all along to distutils to do the heavy lifting.

0 commit comments

Comments
 (0)