]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46362: Ensure ntpath.abspath() uses the Windows API correctly (GH-30571)
authorneonene <53406459+neonene@users.noreply.github.com>
Thu, 13 Jan 2022 23:35:42 +0000 (08:35 +0900)
committerGitHub <noreply@github.com>
Thu, 13 Jan 2022 23:35:42 +0000 (23:35 +0000)
commitd4e64cd4b0ea431d4e371f9b0a25f6b75a069dc1
treececdf1d08cb790283d061b8263086354976c4939
parentb8ddf7e794e5316981016d6d014862e3c4ce149a
bpo-46362: Ensure ntpath.abspath() uses the Windows API correctly (GH-30571)

This makes ntpath.abspath()/getpath_abspath() follow normpath(), since some WinAPIs such as PathCchSkipRoot() require backslashed paths.
Include/internal/pycore_fileutils.h
Lib/ntpath.py
Lib/test/test_embed.py
Lib/test/test_ntpath.py
Misc/NEWS.d/next/Windows/2022-01-13-22-31-09.bpo-46362.f2cuEb.rst [new file with mode: 0644]
Modules/getpath.c
Modules/posixmodule.c
Python/fileutils.c