Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r72929:b059fb4e325c
Date: 2014-08-20 13:30 +0200
http://bitbucket.org/pypy/pypy/changeset/b059fb4e325c/

Log:    Rename Block.get_graph() to make it clear that it's a slow method,
        used only (so far) by the pygame viewer

diff --git a/rpython/flowspace/model.py b/rpython/flowspace/model.py
--- a/rpython/flowspace/model.py
+++ b/rpython/flowspace/model.py
@@ -252,7 +252,7 @@
         from rpython.translator.tool.graphpage import try_show
         try_show(self)
 
-    def get_graph(self):
+    def _slowly_get_graph(self):
         import gc
         pending = [self]   # pending blocks
         seen = {self: True, None: True}
diff --git a/rpython/translator/tool/graphpage.py 
b/rpython/translator/tool/graphpage.py
--- a/rpython/translator/tool/graphpage.py
+++ b/rpython/translator/tool/graphpage.py
@@ -409,7 +409,7 @@
     elif isinstance(obj, Link):
         try_show(obj.prevblock)
     elif isinstance(obj, Block):
-        graph = obj.get_graph()
+        graph = obj._slowly_get_graph()
         if isinstance(graph, FunctionGraph):
             graph.show()
             return
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to