From c442269b78d994fb061afddc7a1314d96f91d487 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 15 May 2014 23:33:46 -0400 Subject: This code path doesn't make sense. If the UnicodeEncodeError occurred above, it will occur here too. --- setuptools/command/egg_info.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'setuptools') 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: -- cgit v1.2.1