]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] GH-119113: Raise `TypeError` from `pathlib.PurePath.with_suffix(None)` (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 May 2024 16:27:12 +0000 (18:27 +0200)
committerGitHub <noreply@github.com>
Sun, 19 May 2024 16:27:12 +0000 (16:27 +0000)
commit27b61c17a1d32d4773bb91f31c31e05a54b3b3df
tree2afb0e5f8381bb9e1c2e4ef192306787eb336665
parentfdc50bac16d3f8dc693488738009de8c86baf6e0
[3.13] GH-119113: Raise `TypeError` from `pathlib.PurePath.with_suffix(None)` (GH-119124) (#119183)

Restore behaviour from 3.12 when `path.with_suffix(None)` is called.
(cherry picked from commit 3c28510b984392b8dac87a17dfc5887366d5c4ab)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Lib/pathlib/_abc.py
Lib/test/test_pathlib/test_pathlib_abc.py
Misc/NEWS.d/next/Library/2024-05-17-17-32-12.gh-issue-119113.kEv1Ll.rst [new file with mode: 0644]