Author: Manuel Jacob
Branch: refactor-str-types
Changeset: r65629:7d2f6f9ef392
Date: 2013-07-24 22:03 +0200
http://bitbucket.org/pypy/pypy/changeset/7d2f6f9ef392/

Log:    Do the same with _is_generic_loop.

diff --git a/pypy/objspace/std/stringmethods.py 
b/pypy/objspace/std/stringmethods.py
--- a/pypy/objspace/std/stringmethods.py
+++ b/pypy/objspace/std/stringmethods.py
@@ -286,10 +286,11 @@
             c = v[0]
             return space.newbool(func(c))
         else:
-            return self._is_generic_loop(space, v, func)
+            return self._is_generic_loop(space, v, func_name)
 
     @specialize.arg(3)
-    def _is_generic_loop(self, space, v, func):
+    def _is_generic_loop(self, space, v, func_name):
+        func = getattr(self, func_name)
         for idx in range(len(v)):
             if not func(v[idx]):
                 return space.w_False
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to