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:
parent
8992e6bde7
commit
167912c9cc
|
@ -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, '/')
|
||||
|
|
Loading…
Reference in a new issue