aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-06-04 15:33:40 -0400
committerJason R. Coombs <jaraco@jaraco.com>2017-06-04 15:33:40 -0400
commit3b443bc9ca9d7159f57fc232c97a4635ecb4086f (patch)
treec99cceb8ac0d645e806c113a7fbf48842d9567b0 /bootstrap.py
parent1b2a92e97875b66d2c6244a249f5ecd711b5a717 (diff)
downloadexternal_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.py3
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)