]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-104114: Fix `pathlib.WindowsPath.glob()` use of literal pattern segment case ...
authorBarney Gale <barney.gale@gmail.com>
Wed, 3 May 2023 16:28:44 +0000 (17:28 +0100)
committerGitHub <noreply@github.com>
Wed, 3 May 2023 16:28:44 +0000 (17:28 +0100)
commitda1980afcb8820ffaa0574df735bc39b1a276a76
tree00a099acf5f616cbcae3646256d3b3cb977830b9
parent38dc3f28dde92b4fa6284a57f4e554991a3d9276
GH-104114: Fix `pathlib.WindowsPath.glob()` use of literal pattern segment case (GH-104116)

We now use `_WildcardSelector` to evaluate literal pattern segments, which
allows us to retrieve the real filesystem case.

This change is necessary in order to implement a *case_sensitive* argument
(see GH-81079) and a *follow_symlinks* argument (see GH-77609).
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-05-03-03-14-33.gh-issue-104114.RG26RD.rst [new file with mode: 0644]