Skip to content

Commit

Permalink
Merge pull request #15 from thecut/master
Browse files Browse the repository at this point in the history
Explicit decoding of README from UTF-8 in setup.py.
  • Loading branch information
evenicoulddoit authored Dec 21, 2017
2 parents 43c5d75 + cc11e31 commit e63a9b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ def get_long_description():
try:
import pypandoc
except ImportError:
return open('README.md').read()
if sys.version_info.major < 3:
return open('README.md').read()
else:
return open('README.md', encoding='utf-8').read()
else:
return pypandoc.convert('README.md', 'rst')

Expand Down

0 comments on commit e63a9b0

Please sign in to comment.