]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:59:05 +0000 (17:59 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Jul 2026 15:59:05 +0000 (15:59 +0000)
commite9fd2191fa3dd858b8eba23c2044dca9ecd0a5aa
tree5a2caaa6aecf0f2a76dc298a0ff43426da20ba29
parent45f7ac07a54a34dc62259451b905edd629ef016b
[3.14] gh-150880: Normalize paths on Windows before appending wildcard (GH-152906) (GH-152964)

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