Commit 441beb4b authored by Armin Rigo's avatar Armin Rigo

Rename Block.get_graph() to make it clear that it's a slow method, used

only (so far) by the pygame viewer
parent e6a3cbb1
......@@ -252,7 +252,7 @@ class Block(object):
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}
......
......@@ -409,7 +409,7 @@ def try_show(obj):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment