summaryrefslogtreecommitdiffstats
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-30 06:40:17 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-30 06:40:17 (GMT)
commita48f3ab8951fa97844f2a4fa368483af968b7b73 (patch)
tree59349d2cbbcb23204391adcd8c1a37896d2ab16e /Python/symtable.c
parentc15317efcd21015a2e076eb0413043c74d84056f (diff)
downloadcpython-a48f3ab8951fa97844f2a4fa368483af968b7b73.zip
cpython-a48f3ab8951fa97844f2a4fa368483af968b7b73.tar.gz
cpython-a48f3ab8951fa97844f2a4fa368483af968b7b73.tar.bz2
Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
Diffstat (limited to 'Python/symtable.c')
-rw-r--r--Python/symtable.c10
1 files changed, 5 insertions, 5 deletions
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 @@ symtable_visit_arguments(struct symtable *st, arguments_ty a)
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;
}