]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-113568: Stop raising auditing events from pathlib ABCs (#113571)
authorBarney Gale <barney.gale@gmail.com>
Fri, 5 Jan 2024 21:41:19 +0000 (21:41 +0000)
committerGitHub <noreply@github.com>
Fri, 5 Jan 2024 21:41:19 +0000 (21:41 +0000)
commit3c4e972d6d0945a5401377bed25b307a88b19c75
tree80d9cf42eb428a1eeeff91abab7255051b35f4d2
parent99854ce1701ca4d1a0d153e501a29f9eec306ce5
GH-113568: Stop raising auditing events from pathlib ABCs (#113571)

Raise auditing events in `pathlib.Path.glob()`, `rglob()` and `walk()`,
but not in `pathlib._abc.PathBase` methods. Also move generation of a
deprecation warning into `pathlib.Path` so it gets the right stack level.
Lib/pathlib/__init__.py
Lib/pathlib/_abc.py
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py
Misc/NEWS.d/next/Library/2023-12-29-17-30-49.gh-issue-113568.UpWNAI.rst [new file with mode: 0644]