summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setuptools.egg-info/requires.txt8
-rwxr-xr-xsetuptools/command/egg_info.py5
2 files changed, 6 insertions, 7 deletions
diff --git a/setuptools.egg-info/requires.txt b/setuptools.egg-info/requires.txt
index e5db30ad..a49a923e 100644
--- a/setuptools.egg-info/requires.txt
+++ b/setuptools.egg-info/requires.txt
@@ -1,7 +1,7 @@
-[ssl:sys_platform=='win32']
-wincertstore==0.2
-
[certs]
-certifi==1.0.1 \ No newline at end of file
+certifi==1.0.1
+
+[ssl:sys_platform=='win32']
+wincertstore==0.2 \ No newline at end of file
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 33fe147e..22501c44 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -1,7 +1,6 @@
"""setuptools.command.egg_info
Create a distribution's .egg-info directory and contents"""
-from __future__ import with_statement
import os
import re
@@ -238,7 +237,7 @@ class FileList(_FileList):
#Must ensure utf-8 encodability
utf8_path = unicode_utils.try_encode(u_path, "utf-8")
- if utf8_path is None:
+ if utf8_path is None:
log.warn(enc_warn, path, 'utf-8')
return False
@@ -326,7 +325,7 @@ def write_file(filename, contents):
#assuming the contents has been vetted for utf-8 encoding
contents = contents.encode("utf-8")
-
+
with open(filename, "wb") as f: # always write POSIX-style manifest
f.write(contents)