GH-110109: Move pathlib ABCs to new pathlib._abc module. (#112881)

Move `_PurePathBase` and `_PathBase` to a new `pathlib._abc` module, and
drop the underscores from the class names.

Tests are mostly left alone in this commit, but they'll be similarly split
in a subsequent commit.

The `pathlib._abc` module will be published as an independent PyPI package
(similar to how `zipfile._path` is published as `zipp`), to be refined
and stabilised prior to its possible addition to the standard library.
This commit is contained in:
Barney Gale 2023-12-09 15:07:40 +00:00 committed by GitHub
parent c98c40227e
commit a98e7a8112
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 518 additions and 511 deletions

1150
Lib/pathlib/_abc.py Normal file

File diff suppressed because it is too large Load diff