diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-04-22 18:09:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 18:09:30 (GMT) |
commit | 080781cd49b13da4a73db87b6f5e0c7aeec83e92 (patch) | |
tree | fda64bfab4afd96dd7a12360f857eaefc3303877 /Python | |
parent | 9c18d783c38fca57a63b61aa778d8a8d18945d95 (diff) | |
download | cpython-080781cd49b13da4a73db87b6f5e0c7aeec83e92.zip cpython-080781cd49b13da4a73db87b6f5e0c7aeec83e92.tar.gz cpython-080781cd49b13da4a73db87b6f5e0c7aeec83e92.tar.bz2 |
[3.10] gh-91700: Validate the group number in conditional expression in RE (GH-91702) (GH-91831)
In expression (?(group)...) an appropriate re.error is now
raised if the group number refers to not defined group.
Previously it raised RuntimeError: invalid SRE code.
(cherry picked from commit 48ec61a89a959071206549819448405c2cea61b0)
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions