]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89973: Fix re.error in the fnmatch module. (GH-93072)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 5 Jun 2022 08:46:29 +0000 (11:46 +0300)
committerGitHub <noreply@github.com>
Sun, 5 Jun 2022 08:46:29 +0000 (11:46 +0300)
commit0902c3d8edf7ef67972dd95f6a21670f5d1a4251
tree08f8bbf28918ffc2efda41dcf9d1586636586d9b
parent6f8367d3489eff07139bc908fdf666fc904ca445
gh-89973: Fix re.error in the fnmatch module. (GH-93072)

Character ranges with upper bound less that lower bound (e.g. [c-a])
are now interpreted as empty ranges, for compatibility with other glob
pattern implementations. Previously it was re.error.
Lib/fnmatch.py
Lib/test/test_fnmatch.py
Misc/NEWS.d/next/Library/2022-05-22-16-08-01.gh-issue-89973.jc-Q4g.rst [new file with mode: 0644]