diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-29 19:49:23 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-29 19:49:23 (GMT) |
commit | 9baa5b2de2e1bd4d56791de8144f737f65b89c74 (patch) | |
tree | 59cff121a4d2becfe389a825f1e2b66e8a839c45 /Lib/sre_compile.py | |
parent | c31e6227f94c2bb0290336c739873173672a8991 (diff) | |
download | cpython-9baa5b2de2e1bd4d56791de8144f737f65b89c74.zip cpython-9baa5b2de2e1bd4d56791de8144f737f65b89c74.tar.gz cpython-9baa5b2de2e1bd4d56791de8144f737f65b89c74.tar.bz2 |
Issue #22437: Number of capturing groups in regular expression is no longer
limited by 100.
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r-- | Lib/sre_compile.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index c6860b5..d4d129b 100644 --- a/Lib/sre_compile.py +++ b/Lib/sre_compile.py @@ -470,12 +470,6 @@ def compile(p, flags=0): # print code - # XXX: <fl> get rid of this limitation! - if p.pattern.groups > 100: - raise AssertionError( - "sorry, but this version only supports 100 named groups" - ) - # map in either direction groupindex = p.pattern.groupdict indexgroup = [None] * p.pattern.groups |