summaryrefslogtreecommitdiff
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-03-31 05:14:30 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2008-03-31 05:14:30 +0000
commit855fe60ef35e635eab78fcf666e8c7b48fc52e72 (patch)
treec7d59e628df45fe37de842a0c068f06c8f4f9746 /Python/symtable.c
parentd2154cc50d33ad769eed550f069d1523c1a41447 (diff)
downloadcpython-855fe60ef35e635eab78fcf666e8c7b48fc52e72.tar.gz
Merged revisions 62047 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r62047 | georg.brandl | 2008-03-29 23:40:17 -0700 (Sat, 29 Mar 2008) | 2 lines 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 b896c52563..0c11ee1aab 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -1431,12 +1431,12 @@ 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)
- if (!symtable_add_def(st, eh->name, DEF_LOCAL))
+ if (eh->v.ExceptHandler.type)
+ VISIT(st, expr, eh->v.ExceptHandler.type);
+ if (eh->v.ExceptHandler.name)
+ if (!symtable_add_def(st, eh->v.ExceptHandler.name, DEF_LOCAL))
return 0;
- VISIT_SEQ(st, stmt, eh->body);
+ VISIT_SEQ(st, stmt, eh->v.ExceptHandler.body);
return 1;
}