[pypy-svn] pypy default: Fix for issue704.

arigo commits-noreply at bitbucket.org
Sun May 1 14:18:06 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r43825:8b96406482dd
Date: 2011-05-01 14:17 +0200
http://bitbucket.org/pypy/pypy/changeset/8b96406482dd/

Log:	Fix for issue704.

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
@@ -227,11 +227,12 @@
     subresult = None
 
     def move_to_next_result(self, ctx):
+        # returns either 'self' or None
         result = self.subresult
         if result is None:
             return
         if result.move_to_next_result(ctx):
-            return result
+            return self
         return self.find_next_result(ctx)
 
     def find_next_result(self, ctx):


More information about the Pypy-commit mailing list