]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-88233: zipfile: refactor _strip_extra (#102084)
authorJason R. Coombs <jaraco@jaraco.com>
Mon, 25 Sep 2023 23:46:58 +0000 (19:46 -0400)
committerGitHub <noreply@github.com>
Mon, 25 Sep 2023 23:46:58 +0000 (19:46 -0400)
commite9791ba35175171170ff09094ea46b91fc18c654
tree699b43373fb8353ed638bc7c70fb326e8007d33f
parent25bb266fc876b344e31e0b5634a4db94912c1aba
gh-88233: zipfile: refactor _strip_extra (#102084)

* Refactor zipfile._strip_extra to use higher level abstractions for extras instead of a heavy-state loop.

* Add blurb

* Remove _strip_extra and use _Extra.strip directly.

* Use memoryview to avoid unnecessary copies while splitting Extras.
Lib/test/test_zipfile/test_core.py
Lib/zipfile/__init__.py
Misc/NEWS.d/next/Library/2023-02-20-12-00-11.gh-issue-88233.o5Zb0t.rst [new file with mode: 0644]