diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-05-02 17:35:39 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-05-02 17:35:39 (GMT) |
commit | bf6c410b2e7b0376f762ee72fa33ab9c0ad936f9 (patch) | |
tree | ecaf76a7e48274efbccff9f27a825ede5d9fc34b /Lib/zipfile.py | |
parent | 62821691426f06cf7632b28d730e405fa31dead7 (diff) | |
download | cpython-bf6c410b2e7b0376f762ee72fa33ab9c0ad936f9.zip cpython-bf6c410b2e7b0376f762ee72fa33ab9c0ad936f9.tar.gz cpython-bf6c410b2e7b0376f762ee72fa33ab9c0ad936f9.tar.bz2 |
revert unrelated change
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r-- | Lib/zipfile.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 3147f98..3106353 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -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 |