From bf6c410b2e7b0376f762ee72fa33ab9c0ad936f9 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 2 May 2009 17:35:39 +0000 Subject: [PATCH] revert unrelated change --- Lib/zipfile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 3147f988f4a..31063535c8d 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