Skip to content

Commit 9eaf4c4

Browse files
committed
Add simple python3 compatibility fix
1 parent 015b426 commit 9eaf4c4

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] == 3:
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)