Skip to content

Commit a29347c

Browse files
rjollosmethane
authored andcommitted
Fix TypeError with Python 2.7 (PyMySQL#575)
TypeError: 'encoding' is an invalid keyword argument for this function
1 parent e58fb6c commit a29347c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
else:
1010
version = "%d.%d.%d" % version_tuple[:3]
1111

12-
with open('./README.rst', encoding='utf-8') as f:
12+
with io.open('./README.rst', encoding='utf-8') as f:
1313
readme = f.read()
1414

1515
setup(

0 commit comments

Comments
 (0)