]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-127807: pathlib ABCs: remove `PathBase._unsupported_msg()` (#127855)
authorBarney Gale <barney.gale@gmail.com>
Thu, 12 Dec 2024 17:39:24 +0000 (17:39 +0000)
committerGitHub <noreply@github.com>
Thu, 12 Dec 2024 17:39:24 +0000 (17:39 +0000)
commit7146f1894638130940944d4808dae7d144d46227
treebe8332197a43a5ff0011af924ccd399e4b96c0e0
parent487fdbed40734fd7721457c6f6ffeca03da0b0e7
GH-127807: pathlib ABCs: remove `PathBase._unsupported_msg()` (#127855)

This method helped us customise the `UnsupportedOperation` message
depending on the type. But we're aiming to make `PathBase` a proper ABC
soon, so `NotImplementedError` is the right exception to raise there.
Lib/pathlib/__init__.py
Lib/pathlib/_abc.py
Lib/pathlib/_local.py
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py