diff Python/symtable.c @ 46200:2ff88ae9850c legacy-trunk

Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
author Georg Brandl <georg@python.org>
date Sun, 30 Mar 2008 06:40:17 +0000
parents fea7ba8910a9
children 4fe192d48960
line wrap: on
line diff
--- a/Python/symtable.c	Sat Mar 29 19:11:52 2008 +0000
+++ b/Python/symtable.c	Sun Mar 30 06:40:17 2008 +0000
@@ -1308,11 +1308,11 @@
 static int 
 symtable_visit_excepthandler(struct symtable *st, excepthandler_ty eh)
 {
-	if (eh->type)
-		VISIT(st, expr, eh->type);
-	if (eh->name)
-		VISIT(st, expr, eh->name);
-	VISIT_SEQ(st, stmt, eh->body);
+	if (eh->v.ExceptHandler.type)
+		VISIT(st, expr, eh->v.ExceptHandler.type);
+	if (eh->v.ExceptHandler.name)
+		VISIT(st, expr, eh->v.ExceptHandler.name);
+	VISIT_SEQ(st, stmt, eh->v.ExceptHandler.body);
 	return 1;
 }