Commit 84b0113c authored by Stefan H. Holek's avatar Stefan H. Holek

Merge the backout. Mercurial is killing me.

--HG--
branch : distribute
extra : rebase_source : 8315b86467e945ff108461f97af20358384a513f
parents 3d1a3b2d 057a7d98
......@@ -281,15 +281,14 @@ class FileList(_FileList):
if item.endswith('\r'): # Fix older sdists built on Windows
item = item[:-1]
path = convert_path(item)
# Filter unused template files all of which have ASCII names
try:
if sys.version_info >= (3,):
path.encode('ascii')
except UnicodeEncodeError:
self.files.append(path)
else:
if os.path.exists(path):
self.files.append(path)
elif path != manifest_maker.template:
log.warn("%r not found -- skipping", path)
except UnicodeEncodeError:
log.warn("%r not %s encodable -- skipping", path,
sys.getfilesystemencoding())
......
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