GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Zipfile module doesn't replace `os.altsep` in filenames in some cases · Issue #92184 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionThe zipfile module currently doesn't replace I'm not currently aware of any cases where To reproduce the issue, the code below manually sets import io import ntpath import os import zipfile def show_zip(): zf = zipfile.ZipFile(io.BytesIO(), 'w') zf.writestr("a/b/", "") zf.writestr("a/b\\", "") zf.writestr("a\\b/", "") zf.writestr("a\\b\\", "") print([x.filename for x in zf.infolist()]) os.sep = ntpath.sep os.altsep = ntpath.altsep show_zip() os.altsep, os.sep = os.sep, os.altsep show_zip() Expected output: Actual output: Environment: Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |