]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-151987: Pass filter_function to TarFile._extract_one() during .extract... 3.10
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 11 Jul 2026 17:45:05 +0000 (19:45 +0200)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2026 17:45:05 +0000 (18:45 +0100)
commitcf23b9153181062150d061468b6d24af33fe214f
tree600075788a08659aa3622987cabc5b0abbd0715f
parentc063191cb7f9170f9565e305f8aa2b79ab2bf609
[3.10] gh-151987: Pass filter_function to TarFile._extract_one() during .extract() (GH-151988) (#152613)

* gh-151987: Pass filter_function to TarFile._extract_one() during .extract() (GH-151988)

(cherry picked from commit 7ccdbaba2c54250a70d7f25632152df7655a5e0a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Seth Michael Larson <seth@python.org>
* Remove newer test helpers

3.11+ has more granular platform support, mostly for WASI.
Use the 3.10 idioms instead:

- @symlink_test is a no-op on non-WASI platforms
- can_chmod is approximated by "not win32" elsewhere in test_tarfile

---------

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Seth Michael Larson <seth@python.org>
Lib/tarfile.py
Lib/test/test_tarfile.py
Misc/NEWS.d/next/Security/2026-06-23-14-19-30.gh-issue-151987.8mNIMf.rst [new file with mode: 0644]