From 337ce0deb26c4fa72b083001428f0ba1d456c0a3 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 15 May 2014 21:35:24 -0400 Subject: Backed out changeset: 1ceaffff2d9b (restoring b0a2fcc5275a). Ref #193 --HG-- extra : rebase_source : 5ca0514bbe3ec025094ea8f39921722d0ab3dd05 --- setuptools/command/egg_info.py | 3 +-- 1 file changed, 1 insertion(+), 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() -- cgit v1.2.3