From 16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 10 Jan 2007 18:51:35 +0000 Subject: Some more changes related to the new except syntax and semantics, by Collin Winter. --- Python/ast.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index 5ccd6f530d..41fb50e410 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -2899,11 +2899,9 @@ ast_for_except_clause(struct compiling *c, const node *exc, node *body) else if (NCH(exc) == 4) { asdl_seq *suite_seq; expr_ty expression; - expr_ty e = ast_for_expr(c, CHILD(exc, 3)); + identifier e = NEW_IDENTIFIER(CHILD(exc, 3)); if (!e) return NULL; - if (!set_context(e, Store, CHILD(exc, 3))) - return NULL; expression = ast_for_expr(c, CHILD(exc, 1)); if (!expression) return NULL; -- cgit v1.2.1