Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r72093:04e9f1667223
Date: 2014-06-17 15:51 -0700
http://bitbucket.org/pypy/pypy/changeset/04e9f1667223/
Log: reduce diff w/ default
diff --git a/pypy/interpreter/pyframe.py b/pypy/interpreter/pyframe.py
--- a/pypy/interpreter/pyframe.py
+++ b/pypy/interpreter/pyframe.py
@@ -164,12 +164,9 @@
for i in range(nfreevars):
self.cells[i + ncellvars] = outer_func.closure[i]
- def is_generator(self):
- return self.getcode().co_flags & pycode.CO_GENERATOR
-
def run(self):
"""Start this frame's execution."""
- if self.is_generator():
+ if self.getcode().co_flags & pycode.CO_GENERATOR:
if self.getcode().co_flags & pycode.CO_YIELD_INSIDE_TRY:
from pypy.interpreter.generator import GeneratorIteratorWithDel
return self.space.wrap(GeneratorIteratorWithDel(self))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit