diff options
author | Joffrey F <f.joffrey@gmail.com> | 2016-11-28 11:33:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-28 11:33:43 -0800 |
commit | f051f7e90a26e83e1ea5ae2957fa4c3602a07eca (patch) | |
tree | 1cea9ec0de9f6e3023b69c6a5efbe5b10c38ded6 /setup.py | |
parent | f36c28926cf9d0e3bfe0f2275c084d63cd3c6169 (diff) | |
parent | a658e14e8b7f578d55102b981ce8828b906b432f (diff) | |
download | docker-py-f051f7e90a26e83e1ea5ae2957fa4c3602a07eca.tar.gz |
Merge pull request #1314 from bfirsh/specify-encoding-for-readme
Specify encoding when loading readme
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ #!/usr/bin/env python +import codecs import os import sys @@ -35,7 +36,7 @@ with open('./test-requirements.txt') as test_reqs_txt: long_description = '' try: - with open('./README.rst') as readme_rst: + with codecs.open('./README.rst', encoding='utf-8') as readme_rst: long_description = readme_rst.read() except IOError: # README.rst is only generated on release. Its absence should not prevent |