summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile/_path
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-126565: Skip `zipfile.Path.exists` check in write mode (GH-126576) ↵Miss Islington (bot)2024-11-101-1/+1
| | | | | | | | | | | | | | | | | | (#126643) gh-126565: Skip `zipfile.Path.exists` check in write mode (GH-126576) When `zipfile.Path.open` is called, the implementation will check whether the path already exists in the ZIP file. However, this check is only required when the ZIP file is in read mode. By swapping arguments of the `and` operator, the short-circuiting will prevent the check from being run in write mode. This change will improve the performance of `open()`, because checking whether a file exists is slow in write mode, especially when the archive has many members. (cherry picked from commit 160758a574d12bf0d965d8206136e7da4f4fd6c3) Co-authored-by: Jan Hicken <janhicken@users.noreply.github.com>
* [3.12] gh-123270: Replaced SanitizedNames with a more surgical fix. ↵Miss Islington (bot)2024-09-021-65/+17
| | | | | | | | | | (GH-123354) (#123411) gh-123270: Replaced SanitizedNames with a more surgical fix. (GH-123354) Applies changes from zipp 3.20.1 and jaraco/zippGH-124 (cherry picked from commit 2231286d78d328c2f575e0b05b16fe447d1656d6) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.12] gh-122903: Honor directories in zipfile.Path.glob. (GH-122908) (#122927)Jason R. Coombs2024-08-122-1/+17
| | | (cherry picked from commit 6aa35f3002dda25858d47e702e750e2871e42a7c)
* [3.12] gh-122905: Sanitize names in zipfile.Path. (GH-122906) (#122923)Miss Islington (bot)2024-08-121-1/+63
|
* [3.12] gh-106752: Sync with zipp 3.16.2 (GH-106757) (#106777)Miss Islington (bot)2023-07-152-18/+53
| | | | | | | | | | gh-106752: Sync with zipp 3.16.2 (GH-106757) * gh-106752: Sync with zipp 3.16.2 * Add blurb (cherry picked from commit 22980dc7c9dcec4b74fea815542601ef582c230e) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.12] gh-106752: Move zipfile._path into its own package (GH-106753) (#106755)Jason R. Coombs2023-07-141-0/+400
* gh-106752: Move zipfile._path into its own package so it may have supplementary behavior. * Add blurb. (cherry picked from commit 03185f0c150ebc52d41dd5ea6f369c7b5ba9fc16)