From 70a57a7d8fc0924c2c97e7996cb34fc581fc05fd Mon Sep 17 00:00:00 2001 From: Michael Levy Date: Thu, 6 Dec 2018 16:03:54 -0700 Subject: [PATCH] Use io.open instead of just open Python 2 doesn't support open(encoding=...) --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index dfa08aa..ecd5588 100644 --- a/setup.py +++ b/setup.py @@ -5,8 +5,9 @@ from setuptools import setup, find_packages import versioneer +import io -with open("README.md", encoding="utf-8") as readme_file: +with io.open("README.md", encoding="utf-8") as readme_file: readme = readme_file.read()