From 9825a4106086cbc25ac140c4d8ffbdbb7a4fc428 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Thu, 31 Aug 2017 09:21:20 +0900 Subject: [PATCH] Use io.open instead of codecs.open --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 1a520bc..13d7d80 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine -import codecs +import io import os import sys from shutil import rmtree @@ -31,7 +31,7 @@ here = os.path.abspath(os.path.dirname(__file__)) # Import the README and use it as the long-description. # Note: this will only work if 'README.rst' is present in your MANIFEST.in file! -with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: +with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = '\n' + f.read() # Load the package's __version__.py module as a dictionary.