]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-90568: Fix exception type for \N with a named sequence in RE (GH-91665...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 22 Apr 2022 18:08:49 +0000 (21:08 +0300)
committerGitHub <noreply@github.com>
Fri, 22 Apr 2022 18:08:49 +0000 (21:08 +0300)
commit9c18d783c38fca57a63b61aa778d8a8d18945d95
tree159220c7d865223e90a10f44e247ac90f36438bd
parent9f8b9a3506fefeba01a18eda0e06c037393be4bf
[3.10] gh-90568: Fix exception type for \N with a named sequence in RE (GH-91665) (GH-91830)

re.error is now raised instead of TypeError.
(cherry picked from commit 6ccfa31421393910b52936e0447625db06f2a655)
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]