summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/zipfile.py4
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