revert unrelated change
This commit is contained in:
parent
6282169142
commit
bf6c410b2e
|
@ -952,9 +952,7 @@ class ZipFile:
|
|||
"""
|
||||
# build the destination pathname, replacing
|
||||
# forward slashes to platform specific separators.
|
||||
# Don't strip it if it is a drive.
|
||||
if targetpath[-1:] in (os.path.sep, os.path.altsep) and \
|
||||
not (len(targetpath) > 1 and targetpath[-2] == ":"):
|
||||
if targetpath[-1:] in (os.path.sep, os.path.altsep):
|
||||
targetpath = targetpath[:-1]
|
||||
|
||||
# don't include leading "/" from file name if present
|
||||
|
|
Loading…
Reference in New Issue