Skip to content

Commit 058b484

Browse files
committed
Use io.open for py2/py3 compat
1 parent 5571663 commit 058b484

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import os
2+
import io
23
import json
34
from setuptools import setup
45

5-
with open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding="utf-8") as f:
6+
with io.open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding="utf-8") as f:
67
readme = f.read()
78

8-
with open(os.path.join(os.path.dirname(__file__), 'package.json'), encoding="utf-8") as f:
9+
with io.open(os.path.join(os.path.dirname(__file__), 'package.json'), encoding="utf-8") as f:
910
package = json.loads(f.read())
1011

1112
setup(

0 commit comments

Comments
 (0)