summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-05-15 21:35:24 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-05-15 21:35:24 -0400
commit337ce0deb26c4fa72b083001428f0ba1d456c0a3 (patch)
tree1a2dfa7bd7428f6484e74342c10fe86bd7361235 /setuptools/command/egg_info.py
parent1535176abf75113e2b749bbccaca999d71697f7a (diff)
downloadpython-setuptools-git-337ce0deb26c4fa72b083001428f0ba1d456c0a3.tar.gz
Backed out changeset: 1ceaffff2d9b (restoring b0a2fcc5275a). Ref #193
--HG-- extra : rebase_source : 5ca0514bbe3ec025094ea8f39921722d0ab3dd05
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 2097f2a9..3a26f201 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -303,8 +303,7 @@ def write_file(filename, contents):
sequence of strings without line terminators) to it.
"""
contents = "\n".join(contents)
- if sys.version_info >= (3,):
- contents = contents.encode("utf-8")
+ contents = contents.encode("utf-8")
f = open(filename, "wb") # always write POSIX-style manifest
f.write(contents)
f.close()