diff options
| author | yyfeng88625 <yyfeng88625@gmail.com> | 2014-03-21 13:43:54 +0800 |
|---|---|---|
| committer | yyfeng88625 <yyfeng88625@gmail.com> | 2014-03-21 13:43:54 +0800 |
| commit | 2e239daea0acb27f437ebcf7a5a5e5f95b2495ab (patch) | |
| tree | ce48a91bf67686eb10a336bf6a688cb29d462a28 /setuptools/command | |
| parent | 9dfdbae4191b92b7773c0bb530ef05bf5ee27a12 (diff) | |
| download | python-setuptools-bitbucket-2e239daea0acb27f437ebcf7a5a5e5f95b2495ab.tar.gz | |
Python2.x needs encode as well.
Diffstat (limited to 'setuptools/command')
| -rwxr-xr-x | setuptools/command/egg_info.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 4f5c9694..30873e19 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -304,8 +304,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() |
