From f64febd39b1b29a97b07d9028d5f7974fa739e0a Mon Sep 17 00:00:00 2001 From: M Pacer Date: Tue, 4 Sep 2018 12:58:13 -0700 Subject: [PATCH] add io import and use io.open for specifying py2/3 compat encoding --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 282f6e6f4..d10f8f938 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,7 @@ import os import setuptools +import io from setuptools.command.bdist_egg import bdist_egg @@ -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(