diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-02-05 21:57:56 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-02-05 21:57:56 -0500 |
| commit | 6aa043ed9006f3cbdb5fc4908b1951005a29781d (patch) | |
| tree | 358b5500bce6329bdd69678a263afef2bf8277fd /setup.py | |
| parent | 8aa5328dc11be34330fb4a00b8b48704187fa51a (diff) | |
| download | python-setuptools-bitbucket-6aa043ed9006f3cbdb5fc4908b1951005a29781d.tar.gz | |
Open readme with codecs to enable explicit encoding declaration. Fixes #144.
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,6 +3,7 @@ import sys import os import textwrap +import codecs # Allow to run setup.py from another directory. os.chdir(os.path.dirname(os.path.abspath(__file__))) @@ -81,7 +82,8 @@ class test(_test): f.write(ep_content) -readme_file = open('README.txt') +readme_file = codecs.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') |
