Kaydet (Commit) bf6c410b authored tarafından Benjamin Peterson's avatar Benjamin Peterson

revert unrelated change

üst 62821691
...@@ -952,9 +952,7 @@ class ZipFile: ...@@ -952,9 +952,7 @@ class ZipFile:
""" """
# build the destination pathname, replacing # build the destination pathname, replacing
# forward slashes to platform specific separators. # 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):
if targetpath[-1:] in (os.path.sep, os.path.altsep) and \
not (len(targetpath) > 1 and targetpath[-2] == ":"):
targetpath = targetpath[:-1] targetpath = targetpath[:-1]
# don't include leading "/" from file name if present # don't include leading "/" from file name if present
......
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