summaryrefslogtreecommitdiffstats
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-16 14:47:15 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-16 14:47:15 (GMT)
commite18e05cce92182e7f852e2d1569904190b8a9a40 (patch)
tree6a9b85ad22229c378de5f57e579c8b2296d5c5b0 /Lib/sre_compile.py
parent94bf697b01f56b99bfd3edaf72b7f4893d80c122 (diff)
downloadcpython-e18e05cce92182e7f852e2d1569904190b8a9a40.zip
cpython-e18e05cce92182e7f852e2d1569904190b8a9a40.tar.gz
cpython-e18e05cce92182e7f852e2d1569904190b8a9a40.tar.bz2
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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index 2a0c745..7cda2b6 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"