From: Samuele P. <ped...@us...> - 2003-11-10 19:12:02
|
Update of /cvsroot/jython/jython/Tools/jythonc In directory sc8-pr-cvs1:/tmp/cvs-serv24343/Tools/jythonc Modified Files: SrcGenCompiler.py Log Message: fixes for org.python.parser.ast attribute name changes. Index: SrcGenCompiler.py =================================================================== RCS file: /cvsroot/jython/jython/Tools/jythonc/SrcGenCompiler.py,v retrieving revision 2.3 retrieving revision 2.4 diff -C2 -d -r2.3 -r2.4 *** SrcGenCompiler.py 30 Oct 2002 12:55:17 -0000 2.3 --- SrcGenCompiler.py 10 Nov 2003 19:11:50 -0000 2.4 *************** *** 437,441 **** n = ast.Expr(ast.Call(ast.Name(tmp_append, ast.Name.Load, node), ! [ node.target ], [], None, None, node), node); --- 437,441 ---- n = ast.Expr(ast.Call(ast.Name(tmp_append, ast.Name.Load, node), ! [ node.elt ], [], None, None, node), node); *************** *** 851,858 **** stmts = [] ! if node.value: ! for i, v in zip(range(len(node.value)), node.value): v = self.visit(v) ! if node.nl and i == len(node.value) - 1: stmts.append(jast.InvokeStatic("Py", "println", [ dest.asAny(), v.asAny()])) --- 851,858 ---- stmts = [] ! if node.values: ! for i, v in zip(range(len(node.values)), node.values): v = self.visit(v) ! if node.nl and i == len(node.values) - 1: stmts.append(jast.InvokeStatic("Py", "println", [ dest.asAny(), v.asAny()])) |