diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-06-04 15:33:40 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-06-04 15:33:40 -0400 |
commit | 3b443bc9ca9d7159f57fc232c97a4635ecb4086f (patch) | |
tree | c99cceb8ac0d645e806c113a7fbf48842d9567b0 /bootstrap.py | |
parent | 1b2a92e97875b66d2c6244a249f5ecd711b5a717 (diff) | |
download | external_python_setuptools-3b443bc9ca9d7159f57fc232c97a4635ecb4086f.tar.gz external_python_setuptools-3b443bc9ca9d7159f57fc232c97a4635ecb4086f.tar.bz2 external_python_setuptools-3b443bc9ca9d7159f57fc232c97a4635ecb4086f.zip |
Use io.open when saving entry_points.
Diffstat (limited to 'bootstrap.py')
-rw-r--r-- | bootstrap.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap.py b/bootstrap.py index 24d7093c..f3a12c07 100644 --- a/bootstrap.py +++ b/bootstrap.py @@ -9,6 +9,7 @@ import os import sys import textwrap import subprocess +import io minimal_egg_info = textwrap.dedent(""" @@ -41,7 +42,7 @@ def build_egg_info(): """ os.mkdir('setuptools.egg-info') - with open('setuptools.egg-info/entry_points.txt', 'w') as ep: + with io.open('setuptools.egg-info/entry_points.txt', 'w') as ep: ep.write(minimal_egg_info) |