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

adim at codespeak.net adim at codespeak.net
Tue Sep 6 09:16:13 CEST 2005


Author: adim
Date: Tue Sep  6 09:16:11 2005
New Revision: 17258

Modified:
   pypy/dist/pypy/interpreter/astcompiler/ast.py
   pypy/dist/pypy/interpreter/astcompiler/ast.txt
Log:
fixed little attribute name error in class If

Modified: pypy/dist/pypy/interpreter/astcompiler/ast.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/ast.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/ast.py	Tue Sep  6 09:16:11 2005
@@ -873,7 +873,7 @@
     def getChildNodes(self):
         nodelist = []
         # tests is a list of couples (node (test), node (suite))
-        for test, suite in self.items:
+        for test, suite in self.tests:
             nodelist.append(test)
             nodelist.append(suite)
         if self.else_ is not None:

Modified: pypy/dist/pypy/interpreter/astcompiler/ast.txt
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/ast.txt	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/ast.txt	Tue Sep  6 09:16:11 2005
@@ -124,6 +124,6 @@
 
 flatten_nodes(If.tests):
     # tests is a list of couples (node (test), node (suite))
-    for test, suite in self.items:
+    for test, suite in self.tests:
         nodelist.append(test)
         nodelist.append(suite)



More information about the Pypy-commit mailing list