[Python-checkins] python/dist/src/Python ast.c,1.1.2.37,1.1.2.38
nnorwitz at users.sourceforge.net
nnorwitz at users.sourceforge.net
Sun Dec 28 22:48:13 EST 2003
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv1003/Python
Modified Files:
Tag: ast-branch
ast.c
Log Message:
Ignore encoding_decls for now
Fix problem with bare print (no args)
Index: ast.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/ast.c,v
retrieving revision 1.1.2.37
retrieving revision 1.1.2.38
diff -C2 -d -r1.1.2.37 -r1.1.2.38
*** ast.c 27 Dec 2003 16:14:05 -0000 1.1.2.37
--- ast.c 29 Dec 2003 03:48:11 -0000 1.1.2.38
***************
*** 177,184 ****
}
case encoding_decl:
! /* XXX need to handle */
! fprintf(stderr, "error in PyAST_FromNode()"
! " need to handle encoding\n");
! break;
default:
goto error;
--- 177,186 ----
}
case encoding_decl:
! /* XXX need to handle properlyi, ignore for now */
! stmts = asdl_seq_new(1);
! if (!stmts)
! return NULL;
! asdl_seq_SET(stmts, 0, Pass(n->n_lineno));
! return Interactive(stmts);
default:
goto error;
***************
*** 1330,1334 ****
REQ(n, print_stmt);
! if (TYPE(CHILD(n, 1)) == RIGHTSHIFT) {
dest = ast_for_expr(CHILD(n, 2));
if (!dest)
--- 1332,1336 ----
REQ(n, print_stmt);
! if (NCH(n) >= 2 && TYPE(CHILD(n, 1)) == RIGHTSHIFT) {
dest = ast_for_expr(CHILD(n, 2));
if (!dest)
More information about the Python-checkins
mailing list