]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-100809: Fix handling of drive-relative paths in pathlib.Path.absolute() (GH-100812)
authorBarney Gale <barney.gale@gmail.com>
Fri, 17 Feb 2023 14:08:14 +0000 (14:08 +0000)
committerGitHub <noreply@github.com>
Fri, 17 Feb 2023 14:08:14 +0000 (14:08 +0000)
commit072011b3c38f871cdc3ab62630ea2234d09456d1
tree5305bd780eb338a27ce67428077773bf0565a5f5
parentd401b20630965c0e1d2a5a0d60d5fc51aa5a8d80
gh-100809: Fix handling of drive-relative paths in pathlib.Path.absolute() (GH-100812)

Resolving the drive independently uses the OS API, which ensures it starts from the current directory on that drive.
Lib/pathlib.py
Lib/test/support/os_helper.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-01-06-21-14-41.gh-issue-100809.I697UT.rst [new file with mode: 0644]