[Python-checkins] python/dist/src/Tools/compiler astgen.py, 1.6.14.1, 1.6.14.2

jhylton@users.sourceforge.net jhylton at users.sourceforge.net
Sun Oct 16 07:24:09 CEST 2005


Update of /cvsroot/python/python/dist/src/Tools/compiler
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27718/Tools/compiler

Modified Files:
      Tag: ast-branch
	astgen.py 
Log Message:
Merge head to branch (for the last time)


Index: astgen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/compiler/astgen.py,v
retrieving revision 1.6.14.1
retrieving revision 1.6.14.2
diff -u -d -r1.6.14.1 -r1.6.14.2
--- astgen.py	7 Jan 2005 07:05:06 -0000	1.6.14.1
+++ astgen.py	16 Oct 2005 05:24:06 -0000	1.6.14.2
@@ -234,9 +234,9 @@
 """
 from consts import CO_VARARGS, CO_VARKEYWORDS
 
-def flatten(list):
+def flatten(seq):
     l = []
-    for elt in list:
+    for elt in seq:
         t = type(elt)
         if t is tuple or t is list:
             for elt2 in flatten(elt):
@@ -245,8 +245,8 @@
             l.append(elt)
     return l
 
-def flatten_nodes(list):
-    return [n for n in flatten(list) if isinstance(n, Node)]
+def flatten_nodes(seq):
+    return [n for n in flatten(seq) if isinstance(n, Node)]
 
 nodes = {}
 



More information about the Python-checkins mailing list