[Python-checkins] CVS: python/dist/src/Lib/compiler transformer.py,1.28,1.29
Jeremy Hylton
jhylton@users.sourceforge.net
Wed, 17 Oct 2001 06:32:54 -0700
Update of /cvsroot/python/python/dist/src/Lib/compiler
In directory usw-pr-cvs1:/tmp/cvs-serv17058/Lib/compiler
Modified Files:
transformer.py
Log Message:
Handle testlist_safe as if it were testlist.
Index: transformer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/compiler/transformer.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** transformer.py 2001/09/17 21:02:51 1.28
--- transformer.py 2001/10/17 13:32:52 1.29
***************
*** 516,522 ****
--- 516,524 ----
def testlist(self, nodelist):
# testlist: expr (',' expr)* [',']
+ # testlist_safe: test [(',' test)+ [',']]
# exprlist: expr (',' expr)* [',']
return self.com_binary(Tuple, nodelist)
+ testlist_safe = testlist # XXX
exprlist = testlist
***************
*** 1255,1258 ****
--- 1257,1261 ----
symbol.expr_stmt,
symbol.testlist,
+ symbol.testlist_safe,
symbol.test,
symbol.and_test,
***************
*** 1307,1310 ****
--- 1310,1314 ----
symbol.suite,
symbol.testlist,
+ symbol.testlist_safe,
symbol.test,
symbol.and_test,