]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-150880: Normalize paths on Windows before appending wildcard (GH-152906...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 3 Jul 2026 15:55:09 +0000 (17:55 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Jul 2026 15:55:09 +0000 (15:55 +0000)
commitec6c89c9051ac7323d26ccd827bc0bbd02d1ed32
treea3415aaa63d0d602825e1592e9281e3cb353445f
parent857acd3f7e13afe1edd44cbdcb9d30f947d8af67
[3.13] gh-150880: Normalize paths on Windows before appending wildcard (GH-152906) (GH-152965)

gh-150880: Normalize paths on Windows before appending wildcard (GH-152906)

This ensures that we don't turn a "valid" path with trailing spaces into an invalid path with embedded spaces.
(cherry picked from commit 1b4135a2c69f5320dbdcb37dcc295a5fd36580b5)

Co-authored-by: Zain Nadeem <zainnadeemzainnadeem80@gmail.com>
Lib/test/test_os.py
Misc/NEWS.d/next/Library/2026-07-02-22-19-53.gh-issue-150880.vPZ7jK.rst [new file with mode: 0644]
Modules/posixmodule.c