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

arigo at codespeak.net arigo at codespeak.net
Sat Sep 24 13:19:22 CEST 2005


Author: arigo
Date: Sat Sep 24 13:19:19 2005
New Revision: 17821

Modified:
   pypy/dist/pypy/translator/tool/make_dot.py
Log:
Oups.  The pygame viewer *did* use the class-based version of
objspace.flow.model.traverse().


Modified: pypy/dist/pypy/translator/tool/make_dot.py
==============================================================================
--- pypy/dist/pypy/translator/tool/make_dot.py	(original)
+++ pypy/dist/pypy/translator/tool/make_dot.py	Sat Sep 24 13:19:19 2005
@@ -85,7 +85,8 @@
         self.func = None
         self.prefix = name
         self.enter_subgraph(name)
-        traverse(self, node)
+        self.visit_FunctionGraph(node)
+        traverse(self.visit, node)
         self.leave_subgraph()
 
     def blockname(self, block):
@@ -97,8 +98,8 @@
             return name
 
     def visit(self, obj):
-        # ignore for now 
-        return
+        if isinstance(obj, Block):
+            self.visit_Block(obj)
 
     def visit_FunctionGraph(self, funcgraph):
         name = self.prefix # +'_'+funcgraph.name



More information about the Pypy-commit mailing list