Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
diff --git a/Python/symtable.c b/Python/symtable.c
index 6318324..cc3c774 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -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;
}