Commits

Armin Rigo committed b059fb4

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

  • Participants
  • Parent commits f7a311f

Comments (0)

Files changed (2)

File rpython/flowspace/model.py

         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}

File rpython/translator/tool/graphpage.py

     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