From ed2b58f7db37491f8ffa83c7dafbdb4b5b2ddbb4 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 7 Feb 2014 17:38:25 +0100 Subject: Use io.open() instead of codecs.open(). (builtins.open() is io.open() in Python 3.) --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index de254361..dc4391c2 100755 --- a/setup.py +++ b/setup.py @@ -1,9 +1,9 @@ #!/usr/bin/env python """Distutils setup file, used to install or test 'setuptools'""" -import sys +import io import os +import sys import textwrap -import codecs # Allow to run setup.py from another directory. os.chdir(os.path.dirname(os.path.abspath(__file__))) @@ -82,7 +82,7 @@ class test(_test): f.write(ep_content) -readme_file = codecs.open('README.txt', encoding='utf-8') +readme_file = io.open('README.txt', encoding='utf-8') # the release script adds hyperlinks to issues if os.path.exists('CHANGES (links).txt'): -- cgit v1.2.3