diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-16 16:55:54 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-16 16:55:54 +0200 |
commit | 165ee9645b6518f36c3ec23d0e64d2956e42c5c4 (patch) | |
tree | 30646ddd2223b92181f05b334089a8526a2e00fd /Lib/sre_compile.py | |
parent | 178e6fef9e8f6248dcc77022d0f448b33698ad8f (diff) | |
parent | a0eb80999538febe046164bae541d3f07b899dfb (diff) | |
download | cpython-git-165ee9645b6518f36c3ec23d0e64d2956e42c5c4.tar.gz |
Issue #13169: The maximal repetition number in a regular expression has been
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r-- | Lib/sre_compile.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index 75f3a093fe..90e3a25f1a 100644 --- a/Lib/sre_compile.py +++ b/Lib/sre_compile.py @@ -13,6 +13,7 @@ import _sre, sys import sre_parse from sre_constants import * +from _sre import MAXREPEAT assert _sre.MAGIC == MAGIC, "SRE module mismatch" |