Commits

Armin Rigo committed db6d61f

Redo the GeneratorIterator/WithDel optimization, which should work now
that the JIT bug was fixed.

Comments (0)

Files changed (1)

pypy/interpreter/pyframe.py

     def run(self):
         """Start this frame's execution."""
         if self.getcode().co_flags & pycode.CO_GENERATOR:
-            if 1:# self.getcode().co_flags & pycode.CO_YIELD_INSIDE_TRY:
+            if self.getcode().co_flags & pycode.CO_YIELD_INSIDE_TRY:
                 from pypy.interpreter.generator import GeneratorIteratorWithDel
                 return self.space.wrap(GeneratorIteratorWithDel(self))
             else: