diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-29 22:49:23 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-29 22:49:23 +0300 |
commit | 829b3cdf07e06cd0bd079a3080c8a85019433c1b (patch) | |
tree | 4541f61ccf1032a165ec20382cab5ccd8864f200 /Lib/sre_compile.py | |
parent | 73293efee5a03b7f349ea436d9a4b44c0a7e01e1 (diff) | |
download | cpython-829b3cdf07e06cd0bd079a3080c8a85019433c1b.tar.gz |
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 c6860b5bda..d4d129b674 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 |