Fix TypeError with Python 2.7 (#575)

TypeError: 'encoding' is an invalid keyword argument
for this function
This commit is contained in:
Ryan J Ollos
2017-05-28 22:38:52 -07:00
committed by INADA Naoki
parent e58fb6cc10
commit a29347c27b

View File

@@ -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(