diff options
author | Carey Metcalfe <carey@cmetcalfe.ca> | 2023-05-11 07:25:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 07:25:16 (GMT) |
commit | 4abfe6a14b5be5decbaa3142d9e2549cf2d86c34 (patch) | |
tree | 8935ca48a59633aaa5e4a29fae8d7eca949e1901 /Misc/NEWS.d/next | |
parent | fcd5fb49b1d71165f3c503c3d2e74a082ddb2f21 (diff) | |
download | cpython-4abfe6a14b5be5decbaa3142d9e2549cf2d86c34.zip cpython-4abfe6a14b5be5decbaa3142d9e2549cf2d86c34.tar.gz cpython-4abfe6a14b5be5decbaa3142d9e2549cf2d86c34.tar.bz2 |
GH-92184: Convert os.altsep to '/' in filenames when creating ZipInfo objects (#92185)
This causes the zipfile module to also consider the character defined by
`os.altsep` (if there is one) to be a path separator and convert it to a
forward slash, as defined by the zip specification.
A logical no-op on all known platforms today as os.altsep is currently only set to a meaningful value on Windows (where it is "/").
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-05-02-16-21-05.gh-issue-92184.hneGVW.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-05-02-16-21-05.gh-issue-92184.hneGVW.rst b/Misc/NEWS.d/next/Library/2022-05-02-16-21-05.gh-issue-92184.hneGVW.rst new file mode 100644 index 0000000..65dbdc9 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-05-02-16-21-05.gh-issue-92184.hneGVW.rst @@ -0,0 +1,3 @@ +When creating zip files using :mod:`zipfile`, ``os.altsep``, if not ``None``, +will always be treated as a path separator even when it is not ``/``. +Patch by Carey Metcalfe. |