Skip to content

Commit

Permalink
add io import and use io.open for specifying py2/3 compat encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
mpacer committed Sep 4, 2018
1 parent 61c3984 commit f64febd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import os
import setuptools
import io

from setuptools.command.bdist_egg import bdist_egg

Expand Down Expand Up @@ -156,7 +157,7 @@ def run(self):
with open(pjoin(here, name, '_version.py')) as f:
exec(f.read(), {}, version_ns)

with open(pjoin(here, 'README.md'), encoding='utf-8') as f:
with io.open(pjoin(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

setup_args = dict(
Expand Down

0 comments on commit f64febd

Please sign in to comment.