commit | 080781cd49b13da4a73db87b6f5e0c7aeec83e92 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Fri Apr 22 21:09:30 2022 +0300 |
committer | GitHub <noreply@github.com> | Fri Apr 22 21:09:30 2022 +0300 |
tree | fda64bfab4afd96dd7a12360f857eaefc3303877 | |
parent | 9c18d783c38fca57a63b61aa778d8a8d18945d95 [diff] |
[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)