[pypy-svn] r66270 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools

benjamin at codespeak.net benjamin at codespeak.net
Thu Jul 16 02:33:35 CEST 2009


Author: benjamin
Date: Thu Jul 16 02:33:34 2009
New Revision: 66270

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py
Log:
return from the default visitor

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py	Thu Jul 16 02:33:34 2009
@@ -149,11 +149,11 @@
 
     def visitProduct(self, prod, name):
         self.emit("def visit_%s(self, node):" % (name,), 1)
-        self.emit("self.default_visitor(node)", 2)
+        self.emit("return self.default_visitor(node)", 2)
 
     def visitConstructor(self, cons, _):
         self.emit("def visit_%s(self, node):" % (cons.name,), 1)
-        self.emit("self.default_visitor(node)", 2)
+        self.emit("return self.default_visitor(node)", 2)
 
 
 class GenericASTVisitorVisitor(ASDLVisitor):



More information about the Pypy-commit mailing list