revert unrelated change

This commit is contained in:
Benjamin Peterson 2009-05-02 17:35:39 +00:00
parent 6282169142
commit bf6c410b2e
1 changed files with 1 additions and 3 deletions

View File

@ -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