Fix TypeError
with Python 2.7 (#575)
TypeError: 'encoding' is an invalid keyword argument for this function
This commit is contained in:

committed by
INADA Naoki

parent
e58fb6cc10
commit
a29347c27b
2
setup.py
2
setup.py
@@ -9,7 +9,7 @@ if version_tuple[3] is not None:
|
|||||||
else:
|
else:
|
||||||
version = "%d.%d.%d" % version_tuple[:3]
|
version = "%d.%d.%d" % version_tuple[:3]
|
||||||
|
|
||||||
with open('./README.rst', encoding='utf-8') as f:
|
with io.open('./README.rst', encoding='utf-8') as f:
|
||||||
readme = f.read()
|
readme = f.read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
Reference in New Issue
Block a user