[pypy-svn] r71176 - pypy/trunk/pypy/interpreter

afa at codespeak.net afa at codespeak.net
Tue Feb 9 09:51:35 CET 2010


Author: afa
Date: Tue Feb  9 09:51:33 2010
New Revision: 71176

Modified:
   pypy/trunk/pypy/interpreter/generator.py
Log:
Fix the NameError


Modified: pypy/trunk/pypy/interpreter/generator.py
==============================================================================
--- pypy/trunk/pypy/interpreter/generator.py	(original)
+++ pypy/trunk/pypy/interpreter/generator.py	Tue Feb  9 09:51:33 2010
@@ -46,7 +46,7 @@
             raise OperationError(space.w_StopIteration, space.w_None)
         # XXX it's not clear that last_instr should be promoted at all
         # but as long as it is necessary for call_assembler, let's do it early
-        last_instr = hint(self.frame.last_instr, promote=True)
+        last_instr = jit.hint(self.frame.last_instr, promote=True)
         if last_instr == -1:
             if w_arg and not space.is_w(w_arg, space.w_None):
                 msg = "can't send non-None value to a just-started generator"



More information about the Pypy-commit mailing list