diff options
author | Stefan H. Holek <stefan@epy.co.at> | 2012-10-17 10:54:39 +0200 |
---|---|---|
committer | Stefan H. Holek <stefan@epy.co.at> | 2012-10-17 10:54:39 +0200 |
commit | 9d66fb61d9579516c5333d51eb85dc3495e6032f (patch) | |
tree | 2aa5f1a07c2149eb791d62e41077eaa470336751 /setuptools/command/sdist.py | |
parent | b68c62e1cd28a9bedf6c6b8f65c5428361e644a9 (diff) | |
download | external_python_setuptools-9d66fb61d9579516c5333d51eb85dc3495e6032f.tar.gz external_python_setuptools-9d66fb61d9579516c5333d51eb85dc3495e6032f.tar.bz2 external_python_setuptools-9d66fb61d9579516c5333d51eb85dc3495e6032f.zip |
Use surrogateescape error handler when reading and writing the manifest. Refs #303.
--HG--
branch : distribute
extra : rebase_source : f0231cf87e2478f988f798dfe579f28e7561aeff
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 d5259c2b..42558143 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') + line = line.decode('UTF-8', 'surrogateescape') # ignore comments and blank lines line = line.strip() if line.startswith('#') or not line: |