]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-104104: Optimize `pathlib.Path.glob()` by avoiding repeated calls to `os.path...
authorBarney Gale <barney.gale@gmail.com>
Tue, 2 May 2023 21:51:18 +0000 (22:51 +0100)
committerGitHub <noreply@github.com>
Tue, 2 May 2023 21:51:18 +0000 (22:51 +0100)
commit47770a1e91d096fd1c689eb0c78b0f9e76b43639
tree31b43ddb067af17f1313afb8528289cdce94c681
parent1f5384434dce013b5dcf7e7ea3ec5312d13bba72
GH-104104: Optimize `pathlib.Path.glob()` by avoiding repeated calls to `os.path.normcase()` (GH-104105)

Use `re.IGNORECASE` to implement case-insensitive matching. This
restores behaviour from before GH-31691.
Lib/pathlib.py
Misc/NEWS.d/next/Library/2023-05-02-21-05-30.gh-issue-104104.9tjplT.rst [new file with mode: 0644]