aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-01-01 23:15:38 -0500
committerJason R. Coombs <jaraco@jaraco.com>2017-01-01 23:15:38 -0500
commit767dcea007cf19b016c33f036f750c87b5876d1f (patch)
tree83b1aef7a8bd34e6b38935f4b497e53ac7eda126 /bootstrap.py
parent377e4b4f6a8a1a4b2f07f6d45f9641e733c61452 (diff)
downloadexternal_python_setuptools-767dcea007cf19b016c33f036f750c87b5876d1f.tar.gz
external_python_setuptools-767dcea007cf19b016c33f036f750c87b5876d1f.tar.bz2
external_python_setuptools-767dcea007cf19b016c33f036f750c87b5876d1f.zip
Use unicode literals
Diffstat (limited to 'bootstrap.py')
-rw-r--r--bootstrap.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap.py b/bootstrap.py
index 705a8720..f7644f12 100644
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -5,6 +5,8 @@ environment by creating a minimal egg-info directory and then invoking the
egg-info command to flesh out the egg-info directory.
"""
+from __future__ import unicode_literals
+
import os
import io
import re
@@ -47,7 +49,8 @@ def build_egg_info():
"""
os.mkdir('setuptools.egg-info')
- with open('setuptools.egg-info/entry_points.txt', 'w') as ep:
+ filename = 'setuptools.egg-info/entry_points.txt'
+ with io.open(filename, 'w', encoding='utf-8') as ep:
ep.write(minimal_egg_info)