]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Replace `pathlib._abc.PathModuleBase.splitroot()` with `splitdrive()` (#114065)
authorBarney Gale <barney.gale@gmail.com>
Sun, 14 Jan 2024 23:06:04 +0000 (23:06 +0000)
committerGitHub <noreply@github.com>
Sun, 14 Jan 2024 23:06:04 +0000 (23:06 +0000)
commit4de4e654e592c4b3b1a073140b97ff7f373c7553
tree7f69b2e02b860ce1adbc775f7e8faefe085cf329
parentca6cf56330ae7751819b62748f33f23d98596703
Replace `pathlib._abc.PathModuleBase.splitroot()` with `splitdrive()` (#114065)

This allows users of the `pathlib-abc` PyPI package to use `posixpath` or
`ntpath` as a path module in versions of Python lacking
`os.path.splitroot()` (3.11 and before).
Lib/pathlib/_abc.py
Lib/test/test_pathlib/test_pathlib_abc.py