diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-15 12:40:55 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-15 12:40:55 -0400 |
commit | 184e94ebbb8324496fdfd3510aa5767028586736 (patch) | |
tree | 748fa4e341482b2b2c280aff9051a6a1106bbaef | |
parent | 0a366602272433293a0b12d895bddac999540563 (diff) | |
download | external_python_setuptools-184e94ebbb8324496fdfd3510aa5767028586736.tar.gz external_python_setuptools-184e94ebbb8324496fdfd3510aa5767028586736.tar.bz2 external_python_setuptools-184e94ebbb8324496fdfd3510aa5767028586736.zip |
Use io.open for changes file as well to support UTF-8 encoding.
-rwxr-xr-x | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -92,10 +92,10 @@ readme_file = io.open('README.txt', encoding='utf-8') # the release script adds hyperlinks to issues if os.path.exists('CHANGES (links).txt'): - changes_file = open('CHANGES (links).txt') + changes_file = io.open('CHANGES (links).txt', encoding='utf-8') else: # but if the release script has not run, fall back to the source file - changes_file = open('CHANGES.txt') + changes_file = io.open('CHANGES.txt', encoding='utf-8') with readme_file: with changes_file: long_description = readme_file.read() + '\n' + changes_file.read() |