]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] 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 16:02:22 +0000 (18:02 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Jul 2026 16:02:22 +0000 (16:02 +0000)
commitf3ef09e976d7a3c0b8f9ae1d2aeafb509b84a38f
treead693e57a72ab1bfc4bbdcec131332c979e99830
parent8ad11e3d96d34b4e6b382074173e437ed99ded95
[3.15] gh-150880: Normalize paths on Windows before appending wildcard (GH-152906) (GH-152963)

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/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