]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-128520: pathlib ABCs: tweak protocol for virtual path strings (#134104)
authorBarney Gale <barney.gale@gmail.com>
Sun, 27 Jul 2025 11:47:15 +0000 (12:47 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Jul 2025 11:47:15 +0000 (12:47 +0100)
commit2bd4ff07001038fada17b6dbcb5ab5aabd27c26e
tree3e7f062d5aa79118e5c38e7e49aef3fcc1df1a2e
parent10a925c86db4cbcb9324c7269f69f813d3e7ed79
GH-128520: pathlib ABCs: tweak protocol for virtual path strings (#134104)

Adjust `pathlib._os.vfspath()` so that it doesn't try `os.fsdecode()`. I
don't know that supporting `os.PathLike` arguments is a good idea, so
it's best to leave it out for now.
Lib/pathlib/__init__.py
Lib/pathlib/_os.py
Lib/test/test_pathlib/support/zip_path.py