Skip to content

Commit

Permalink
Use io.open for py2/py3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleyg committed Jul 8, 2020
1 parent 5571663 commit 058b484
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import os
import io
import json
from setuptools import setup

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

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

setup(
Expand Down

0 comments on commit 058b484

Please sign in to comment.