[pypy-commit] pypy translation-cleanup: Kill unused attr PyGraph.is_generator

rlamy noreply at buildbot.pypy.org
Wed Oct 3 18:19:00 CEST 2012


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: translation-cleanup
Changeset: r57778:3397c9b8fc68
Date: 2012-10-03 17:13 +0100
http://bitbucket.org/pypy/pypy/changeset/3397c9b8fc68/

Log:	Kill unused attr PyGraph.is_generator

diff --git a/pypy/objspace/flow/objspace.py b/pypy/objspace/flow/objspace.py
--- a/pypy/objspace/flow/objspace.py
+++ b/pypy/objspace/flow/objspace.py
@@ -253,7 +253,7 @@
         frame.build_flow()
         fixeggblocks(graph)
         checkgraph(graph)
-        if graph.is_generator:
+        if code.is_generator:
             tweak_generator_graph(graph)
         return graph
 
diff --git a/pypy/objspace/flow/pygraph.py b/pypy/objspace/flow/pygraph.py
--- a/pypy/objspace/flow/pygraph.py
+++ b/pypy/objspace/flow/pygraph.py
@@ -25,7 +25,6 @@
         self.func = func
         self.signature = code.signature()
         self.defaults = func.func_defaults or ()
-        self.is_generator = code.is_generator
 
     @staticmethod
     def _sanitize_funcname(func):


More information about the pypy-commit mailing list