Commit bf6c410b authored by Benjamin Peterson's avatar Benjamin Peterson

revert unrelated change

parent 62821691
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment