summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-07-02 19:54:28 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-07-02 19:54:28 (GMT)
commitdf781e6a3f05f84015ffc1f354a95c29dcababe2 (patch)
tree1bcd76ffdca700aad1a1ba2699491d0c5ca8d0b2 /Modules
parentcb9be939559474b20283e43d3e9cd43fc30f1ef1 (diff)
downloadcpython-df781e6a3f05f84015ffc1f354a95c29dcababe2.zip
cpython-df781e6a3f05f84015ffc1f354a95c29dcababe2.tar.gz
cpython-df781e6a3f05f84015ffc1f354a95c29dcababe2.tar.bz2
reapplied darryl gallion's minimizing repeat fix. I'm still not 100%
sure about this one, but test #133283 now works even with the fix in place, and so does the test suite. we'll see what comes up...
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index 16629bc..910e51f 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -1104,7 +1104,7 @@ SRE_MATCH(SRE_STATE* state, SRE_CODE* pattern, int level)
/* see if the tail matches */
state->repeat = rp->prev;
/* FIXME: the following fix doesn't always work (#133283) */
- if (0 && rp->pattern[2] == 65535) {
+ if (rp->pattern[2] == 65535) {
/* unbounded repeat */
for (;;) {
i = SRE_MATCH(state, pattern, level + 1);