]> granicus.if.org Git - python/commitdiff
revert unrelated change
authorBenjamin Peterson <benjamin@python.org>
Sat, 2 May 2009 17:35:39 +0000 (17:35 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 2 May 2009 17:35:39 +0000 (17:35 +0000)
Lib/zipfile.py

index 3147f988f4aab9e83b07d077cec3c52542ad6306..31063535c8db1ed4bfa97abfb86ec344ce5c3f26 100644 (file)
@@ -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