diff options
author | Stefan H. Holek <stefan@epy.co.at> | 2012-10-25 23:45:25 +0200 |
---|---|---|
committer | Stefan H. Holek <stefan@epy.co.at> | 2012-10-25 23:45:25 +0200 |
commit | 3b26424a5a614cbed17f17591f91ec453be9d038 (patch) | |
tree | 97fcc19a4be3b193e92c84a91ddea1d3aeb14dc6 /setuptools/command/sdist.py | |
parent | a3966d17f6f7f0769b83d5ef56fc8f97f6a4b415 (diff) | |
download | external_python_setuptools-3b26424a5a614cbed17f17591f91ec453be9d038.tar.gz external_python_setuptools-3b26424a5a614cbed17f17591f91ec453be9d038.tar.bz2 external_python_setuptools-3b26424a5a614cbed17f17591f91ec453be9d038.zip |
When writing the manifest under Python 3, skip filenames that cannot be encoded to UTF-8.
--HG--
branch : distribute
extra : rebase_source : f1b439267fce37754aac49af15a9e26346950a26
Diffstat (limited to 'setuptools/command/sdist.py')
-rwxr-xr-x | setuptools/command/sdist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py index 42558143..d5259c2b 100755 --- a/setuptools/command/sdist.py +++ b/setuptools/command/sdist.py @@ -283,7 +283,7 @@ class sdist(_sdist): manifest = open(self.manifest, 'rbU') for line in manifest: if sys.version_info >= (3,): - line = line.decode('UTF-8', 'surrogateescape') + line = line.decode('UTF-8') # ignore comments and blank lines line = line.strip() if line.startswith('#') or not line: |