Author: Bruno Gola <[email protected]>
Branch: 
Changeset: r48549:d4c7fe2ac048
Date: 2011-10-27 21:01 -0200
http://bitbucket.org/pypy/pypy/changeset/d4c7fe2ac048/

Log:    test_search.py and test_zinternal.py passing

diff --git a/pypy/rlib/rsre/rsre_core.py b/pypy/rlib/rsre/rsre_core.py
--- a/pypy/rlib/rsre/rsre_core.py
+++ b/pypy/rlib/rsre/rsre_core.py
@@ -389,11 +389,10 @@
             # zero-width match protection
             min = ctx.pat(ppos+1)
             if self.num_pending >= min:
-                if ptr == ctx.match_end and ctx.match_marks:
-                    # matched marks inside a zero-width assertion
-                    marks = ctx.match_marks
                 while enum is not None and ptr == ctx.match_end:
                     enum = enum.move_to_next_result(ctx)
+                    # matched marks for zero-width assertions
+                    marks = ctx.match_marks
             #
             if enum is not None:
                 # matched one more 'item'.  record it and continue.
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to