summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2023-02-17 14:08:14 (GMT)
committerGitHub <noreply@github.com>2023-02-17 14:08:14 (GMT)
commit072011b3c38f871cdc3ab62630ea2234d09456d1 (patch)
tree5305bd780eb338a27ce67428077773bf0565a5f5 /Misc
parentd401b20630965c0e1d2a5a0d60d5fc51aa5a8d80 (diff)
downloadcpython-072011b3c38f871cdc3ab62630ea2234d09456d1.zip
cpython-072011b3c38f871cdc3ab62630ea2234d09456d1.tar.gz
cpython-072011b3c38f871cdc3ab62630ea2234d09456d1.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-01-06-21-14-41.gh-issue-100809.I697UT.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-01-06-21-14-41.gh-issue-100809.I697UT.rst b/Misc/NEWS.d/next/Library/2023-01-06-21-14-41.gh-issue-100809.I697UT.rst
new file mode 100644
index 0000000..54082de
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-01-06-21-14-41.gh-issue-100809.I697UT.rst
@@ -0,0 +1,3 @@
+Fix handling of drive-relative paths (like 'C:' and 'C:foo') in
+:meth:`pathlib.Path.absolute`. This method now uses the OS API
+to retrieve the correct current working directory for the drive.