]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-128520: Merge `pathlib._abc` into `pathlib.types` (#130747)
authorBarney Gale <barney.gale@gmail.com>
Mon, 3 Mar 2025 17:56:57 +0000 (17:56 +0000)
committerGitHub <noreply@github.com>
Mon, 3 Mar 2025 17:56:57 +0000 (17:56 +0000)
commitd0eb01c9de9a455df36f885506314d8d00645c9f
tree45774e474db3d21ce35268e4aa49e150739fd72c
parent321bf595121f9327368af8bf5e850d9d145360c2
GH-128520: Merge `pathlib._abc` into `pathlib.types` (#130747)

There used to be a meaningful distinction between these modules: `pathlib`
imported `pathlib._abc` but not `pathlib.types`. This is no longer the
case (neither module is imported), so we move the ABCs as follows:

- `pathlib._abc.JoinablePath` --> `pathlib.types._JoinablePath`
- `pathlib._abc.ReadablePath` --> `pathlib.types._ReadablePath`
- `pathlib._abc.WritablePath` --> `pathlib.types._WritablePath`
Lib/pathlib/_abc.py [deleted file]
Lib/pathlib/types.py
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py