Skip to content

Commit bfd004d

Browse files
committed
Fix a py2 compatibility issue in setup.py
Encoding is not a valid arg for open() in earlier versions of python.
1 parent 71dfa15 commit bfd004d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from os import path
44
this_directory = path.abspath(path.dirname(__file__))
5-
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
6-
long_description = f.read()
5+
with open(path.join(this_directory, 'README.md'), 'rb') as f:
6+
long_description = f.read().decode('utf-8')
77

88

99
setup(

0 commit comments

Comments
 (0)