1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Fix nonportable assertion for win32

This commit is contained in:
Dave Abrahams 2010-05-18 14:34:00 -04:00
parent 8992e6bde7
commit 167912c9cc

View file

@ -510,7 +510,7 @@ execfile(__file__)
logger.notify('Saved %s' % display_path(archive_path))
def _clean_zip_name(self, name, prefix):
assert name.startswith(prefix+'/'), (
assert name.startswith(prefix+os.path.sep), (
"name %r doesn't start with prefix %r" % (name, prefix))
name = name[len(prefix)+1:]
name = name.replace(os.path.sep, '/')