]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] gh-90568: Fix exception type for \N with a named sequence in RE (GH-91665)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 Apr 2022 18:34:31 +0000 (11:34 -0700)
committerGitHub <noreply@github.com>
Fri, 22 Apr 2022 18:34:31 +0000 (21:34 +0300)
commit97d14e1dfb9347bc8ef581055b2f70cd03e5f622
tree75df484b0a13a5b2f96c890faedd9d535a3d4d02
parent2f75d43f1e8954df53ba4a7ad950ed37352a75fc
[3.9] gh-90568: Fix exception type for \N with a named sequence in RE (GH-91665) (GH-91830) (GH-91834)

re.error is now raised instead of TypeError.
(cherry picked from commit 6ccfa31421393910b52936e0447625db06f2a655)
(cherry picked from commit 9c18d783c38fca57a63b61aa778d8a8d18945d95)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/sre_parse.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]