Skip to content

Commit 3b5149e

Browse files
committed
Merge pull request #119 from mexicarne/master
Add simple python3 compatibility fix
2 parents 015b426 + 0a87f3b commit 3b5149e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
install_reqs += ['argparse']
2323
tests_reqs += ['unittest2']
2424

25-
readme = open('README.rst').read()
25+
if sys.version_info[0] > 2:
26+
readme = open('README.rst', encoding='utf-8').read()
27+
else:
28+
readme = open('README.rst').read()
29+
2630
history = open('CHANGES').read().replace('.. :changelog:', '')
2731

2832
setup(

0 commit comments

Comments
 (0)