From 058b484b997158219b9c0eda34ec6ac3d897f563 Mon Sep 17 00:00:00 2001 From: Bradley Griffiths Date: Wed, 8 Jul 2020 18:02:52 +0100 Subject: [PATCH] Use io.open for py2/py3 compat --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b8060739..932402a6 100644 --- a/setup.py +++ b/setup.py @@ -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(