]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90568: Fix exception type for \N with a named sequence in RE (GH-91665)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 22 Apr 2022 15:35:28 +0000 (18:35 +0300)
committerGitHub <noreply@github.com>
Fri, 22 Apr 2022 15:35:28 +0000 (18:35 +0300)
commit6ccfa31421393910b52936e0447625db06f2a655
tree825f9f3bcd6c14f5bab82ee08d55988f8748a168
parent2f233fceae9a0c5e66e439bc0169b36547ba47c3
gh-90568: Fix exception type for \N with a named sequence in RE (GH-91665)

re.error is now raised instead of TypeError.
Lib/re/_parser.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2022-04-18-16-31-33.gh-issue-90568.9kiU7o.rst [new file with mode: 0644]