Commits

Jeremy Thurgood committed 79512cc

actually check for CO_YIELD_INSIDE_TRY in co_flags

  • Participants
  • Parent commits 2978bfd

Comments (0)

Files changed (1)

File pypy/interpreter/pyframe.py

     def run(self):
         """Start this frame's execution."""
         if self.getcode().co_flags & pycode.CO_GENERATOR:
-            if 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: