]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-119113: Raise `TypeError` from `pathlib.PurePath.with_suffix(None)` (#119124)
authorBarney Gale <barney.gale@gmail.com>
Sun, 19 May 2024 16:04:56 +0000 (17:04 +0100)
committerGitHub <noreply@github.com>
Sun, 19 May 2024 16:04:56 +0000 (17:04 +0100)
commit3c28510b984392b8dac87a17dfc5887366d5c4ab
tree65ca94ee2d17dda29fa862005fcbe57b9d1f148e
parent4b7667172898d440c1931ae923446c6a5ef1765e
GH-119113: Raise `TypeError` from `pathlib.PurePath.with_suffix(None)` (#119124)

Restore behaviour from 3.12 when `path.with_suffix(None)` is called.
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]