Commit c442269b authored by Jason R. Coombs's avatar Jason R. Coombs

This code path doesn't make sense. If the UnicodeEncodeError occurred above,...

This code path doesn't make sense. If the UnicodeEncodeError occurred above, it will occur here too.
parent 16cffb55
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment