summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile/_path
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-126565: Skip `zipfile.Path.exists` check in write mode (GH-126576) ↵Miss Islington (bot)2024-11-101-1/+1
| | | | | | | | | | | | | | | | | | (#126642) 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.13] gh-123270: Replaced SanitizedNames with a more surgical fix. ↵Miss Islington (bot)2024-09-021-65/+17
| | | | | | | | | | (GH-123354) (#123410) 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.13] gh-122903: Honor directories in zipfile.Path.glob. (GH-122908) (#122926)Miss Islington (bot)2024-08-122-4/+14
| | | | (cherry picked from commit 6aa35f3002dda25858d47e702e750e2871e42a7c)
* [3.13] gh-122905: Sanitize names in zipfile.Path. (GH-122906) (#122922)Miss Islington (bot)2024-08-121-1/+63
|
* [3.13] gh-119588: Implement zipfile.Path.is_symlink (zipp 3.19.0). ↵Miss Islington (bot)2024-06-041-2/+5
| | | | | | | | (GH-119591) (#119985) gh-119588: Implement zipfile.Path.is_symlink (zipp 3.19.0). (GH-119591) (cherry picked from commit 42a34ddb0b63e638905b01e17a7254623a0de427) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* Fix typo in Lib/zipfile/_path/__init__.py (#118622)Xie Yanbo2024-05-061-1/+1
|
* gh-106531: Refresh zipfile._path with zipp 3.18. (#116835)Jason R. Coombs2024-03-142-37/+140
| | | | | * gh-106531: Refresh zipfile._path with zipp 3.18. * Add blurb
* gh-106752: Sync with zipp 3.16.2 (#106757)Jason R. Coombs2023-07-152-18/+53
| | | | | * gh-106752: Sync with zipp 3.16.2 * Add blurb
* gh-106752: Move zipfile._path into its own package (#106753)Jason R. Coombs2023-07-141-0/+400
* gh-106752: Move zipfile._path into its own package so it may have supplementary behavior. * Add blurb