From: Benjamin Peterson Date: Sat, 2 May 2009 17:35:39 +0000 (+0000) Subject: revert unrelated change X-Git-Tag: v2.7a1~1314 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf6c410b2e7b0376f762ee72fa33ab9c0ad936f9;p=python revert unrelated change --- diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 3147f988f4..31063535c8 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