[pypy-svn] r17316 - pypy/dist/pypy/translator/tool

ale at codespeak.net ale at codespeak.net
Wed Sep 7 11:09:27 CEST 2005


Author: ale
Date: Wed Sep  7 11:09:26 2005
New Revision: 17316

Modified:
   pypy/dist/pypy/translator/tool/pdbplus.py
Log:
Changed the use of the (previously) global t to self.translator

Modified: pypy/dist/pypy/translator/tool/pdbplus.py
==============================================================================
--- pypy/dist/pypy/translator/tool/pdbplus.py	(original)
+++ pypy/dist/pypy/translator/tool/pdbplus.py	Wed Sep  7 11:09:26 2005
@@ -314,7 +314,7 @@
         if not isinstance(obj, types.FunctionType):
             print "*** Not a function"
             return
-        self._show(graphpage.FlowGraphPage(t, [obj]))
+        self._show(graphpage.FlowGraphPage(self.translator, [obj]))
 
     def do_callg(self, arg):
         """callg obj
@@ -330,13 +330,13 @@
         if not isinstance(obj, types.FunctionType):
             print "*** Not a function"
             return
-        self._show(graphpage.LocalizedCallGraphPage(t, obj))
+        self._show(graphpage.LocalizedCallGraphPage(self.translator, obj))
 
     def do_classhier(self, arg):
         """classhier
 show class hierarchy graph"""
         from pypy.translator.tool import graphpage           
-        self._show(graphpage.ClassHierarchyPage(t))
+        self._show(graphpage.ClassHierarchyPage(self.translator))
 
     def help_graphs(self):
         print "graph commands are: showg, flowg, callg, classhier"



More information about the Pypy-commit mailing list