Skip to content

Commit

Permalink
Merge pull request #119 from mexicarne/master
Browse files Browse the repository at this point in the history
Add simple python3 compatibility fix
  • Loading branch information
tony committed Aug 23, 2015
2 parents 015b426 + 0a87f3b commit 3b5149e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Expand Up @@ -22,7 +22,11 @@
install_reqs += ['argparse']
tests_reqs += ['unittest2']

readme = open('README.rst').read()
if sys.version_info[0] > 2:
readme = open('README.rst', encoding='utf-8').read()
else:
readme = open('README.rst').read()

history = open('CHANGES').read().replace('.. :changelog:', '')

setup(
Expand Down

0 comments on commit 3b5149e

Please sign in to comment.