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

pedronis at codespeak.net pedronis at codespeak.net
Mon Sep 5 10:30:24 CEST 2005


Author: pedronis
Date: Mon Sep  5 10:30:22 2005
New Revision: 17217

Modified:
   pypy/dist/pypy/interpreter/astcompiler/ast.py
Log:
some getChildNodes were still returning tuples



Modified: pypy/dist/pypy/interpreter/astcompiler/ast.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/ast.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/ast.py	Mon Sep  5 10:30:22 2005
@@ -332,7 +332,7 @@
         return ()
 
     def getChildNodes(self):
-        return ()
+        return []
 
     def __repr__(self):
         return "Break()"
@@ -449,7 +449,7 @@
         return ()
 
     def getChildNodes(self):
-        return ()
+        return []
 
     def __repr__(self):
         return "Continue()"
@@ -538,7 +538,7 @@
         return ()
 
     def getChildNodes(self):
-        return ()
+        return []
 
     def __repr__(self):
         return "Ellipsis()"
@@ -1107,7 +1107,7 @@
         return ()
 
     def getChildNodes(self):
-        return ()
+        return []
 
     def __repr__(self):
         return "NoneConst()"
@@ -1176,7 +1176,7 @@
         return ()
 
     def getChildNodes(self):
-        return ()
+        return []
 
     def __repr__(self):
         return "Pass()"



More information about the Pypy-commit mailing list