Commits

Armin Rigo committed 5a96403

Get rid of the distinction between translator.view() and graph.show(),
by supporting both names on both objects.

Comments (0)

Files changed (2)

pypy/objspace/flow/model.py

         from pypy.translator.tool.graphpage import FlowGraphPage
         FlowGraphPage(t, [self]).display()
 
+    view = show
+
 
 class Link(object):
 
         from pypy.translator.tool.graphpage import try_show
         try_show(self)
 
+    view = show
+
 
 class Block(object):
     __slots__ = """inputargs operations exitswitch
         from pypy.translator.tool.graphpage import try_show
         try_show(self)
 
+    view = show
+
 
 class Variable(object):
     __slots__ = ["_name", "_nr", "concretetype"]

pypy/translator/translator.py

         from pypy.translator.tool.graphpage import FlowGraphPage
         FlowGraphPage(self).display()
 
+    show = view
+
     def viewcg(self, center_graph=None, huge=100):
         """Shows the whole call graph and the class hierarchy, based on
         the computed annotations."""
         from pypy.translator.tool.graphpage import TranslatorPage
         TranslatorPage(self, center_graph=center_graph, huge=huge).display()
 
+    showcg = viewcg
 
 
 # _______________________________________________________________