aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2014-02-07 17:38:25 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2014-02-07 17:38:25 +0100
commited2b58f7db37491f8ffa83c7dafbdb4b5b2ddbb4 (patch)
tree43f6a88d2c555f974ef6aca92db02ad451cdaf97 /setup.py
parentdc18e9bab9e5bca57269775572a4e77fcef98b78 (diff)
downloadexternal_python_setuptools-ed2b58f7db37491f8ffa83c7dafbdb4b5b2ddbb4.tar.gz
external_python_setuptools-ed2b58f7db37491f8ffa83c7dafbdb4b5b2ddbb4.tar.bz2
external_python_setuptools-ed2b58f7db37491f8ffa83c7dafbdb4b5b2ddbb4.zip
Use io.open() instead of codecs.open().
(builtins.open() is io.open() in Python 3.)
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py6
1 files changed, 3 insertions, 3 deletions
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'):