diff options
| author | Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> | 2014-02-07 17:38:25 +0100 |
|---|---|---|
| committer | Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> | 2014-02-07 17:38:25 +0100 |
| commit | b7638bad0150b34cf7bdd45e139a179a9c39e6bb (patch) | |
| tree | 4155d227b9d03317fcf6de564e9dfa3f2715c2bf /setup.py | |
| parent | ac9c97f0c6a9540cf16af487a27d59c5b06511cf (diff) | |
| download | python-setuptools-bitbucket-b7638bad0150b34cf7bdd45e139a179a9c39e6bb.tar.gz | |
Use io.open() instead of codecs.open().
(builtins.open() is io.open() in Python 3.)
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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'): |
