[pypy-svn] r17376 - pypy/dist/pypy/interpreter/astcompiler

pedronis at codespeak.net pedronis at codespeak.net
Thu Sep 8 17:51:40 CEST 2005


Author: pedronis
Date: Thu Sep  8 17:51:39 2005
New Revision: 17376

Modified:
   pypy/dist/pypy/interpreter/astcompiler/ast.py
   pypy/dist/pypy/interpreter/astcompiler/astgen.py
Log:
visitNode is not really implemted causing blocked blocks.



Modified: pypy/dist/pypy/interpreter/astcompiler/ast.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/ast.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/ast.py	Thu Sep  8 17:51:39 2005
@@ -37,7 +37,7 @@
     def getChildNodes(self):
         return [] # implemented by subclasses
     def accept(self, visitor):
-        return visitor.visitNode(self)
+        raise NotImplentedError
     def flatten(self):
         res = []
         nodes = self.getChildNodes()

Modified: pypy/dist/pypy/interpreter/astcompiler/astgen.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/astgen.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/astgen.py	Thu Sep  8 17:51:39 2005
@@ -374,7 +374,7 @@
     def getChildNodes(self):
         return [] # implemented by subclasses
     def accept(self, visitor):
-        return visitor.visitNode(self)
+        raise NotImplentedError
     def flatten(self):
         res = []
         nodes = self.getChildNodes()



More information about the Pypy-commit mailing list