[Python-checkins] CVS: python/dist/src/Tools/compiler/compiler astgen.py,1.1,1.2

Jeremy Hylton jhylton@users.sourceforge.net
Tue, 14 Aug 2001 11:58:03 -0700


Update of /cvsroot/python/python/dist/src/Tools/compiler/compiler
In directory usw-pr-cvs1:/tmp/cvs-serv5992/compiler

Modified Files:
	astgen.py 
Log Message:
Add getChildNodes() method to Node



Index: astgen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/compiler/astgen.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** astgen.py	2000/10/25 17:59:17	1.1
--- astgen.py	2001/08/14 18:58:00	1.2
***************
*** 172,175 ****
--- 172,177 ----
      def asList(self):
          return tuple(asList(self.getChildren()))
+     def getChildNodes(self):
+         return [n for n in self.getChildnre() if isinstance(n, Node)]
  
  class EmptyNode(Node):