summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-05-15 23:33:46 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-05-15 23:33:46 -0400
commitc442269b78d994fb061afddc7a1314d96f91d487 (patch)
treeeff5f74f89934b7adb061c2cf77f1d2aca219193 /setuptools/command/egg_info.py
parent16cffb5544e37d9f30ce0b5f485fefb991633d1e (diff)
downloadpython-setuptools-git-c442269b78d994fb061afddc7a1314d96f91d487.tar.gz
This code path doesn't make sense. If the UnicodeEncodeError occurred above, it will occur here too.
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-xsetuptools/command/egg_info.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index c9d4d82e..ed8e458a 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -214,10 +214,6 @@ class FileList(_FileList):
if os.path.exists(path) or os.path.exists(path.encode('utf-8')):
self.files.append(path)
except UnicodeEncodeError:
- # Accept UTF-8 filenames even if LANG=C
- if os.path.exists(path.encode('utf-8')):
- self.files.append(path)
- else:
log.warn("'%s' not %s encodable -- skipping", path,
sys.getfilesystemencoding())
else: