diff Python/ast.c @ 40588:4bab65fcca8e

Some more changes related to the new except syntax and semantics, by Collin Winter.
author Guido van Rossum <guido@python.org>
date Wed, 10 Jan 2007 18:51:35 +0000
parents 54cd47788811
children 793e0323d4d6
line wrap: on
line diff
--- a/Python/ast.c	Wed Jan 10 16:19:56 2007 +0000
+++ b/Python/ast.c	Wed Jan 10 18:51:35 2007 +0000
@@ -2899,11 +2899,9 @@
     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;