diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-17 12:09:26 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-17 12:09:26 -0400 |
| commit | 3d6068d5f67f044b2e37711b6275d58915e41895 (patch) | |
| tree | 994dda6bc3772b8c0515ad098d41a746bb07d43a | |
| parent | f03d098eef9f80ee2bccba52e7e55c52bdb16804 (diff) | |
| download | python-setuptools-git-3d6068d5f67f044b2e37711b6275d58915e41895.tar.gz | |
with_statement is available naturally in Python 2.6
| -rw-r--r-- | setuptools.egg-info/requires.txt | 8 | ||||
| -rwxr-xr-x | setuptools/command/egg_info.py | 5 |
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) |
