From 828f04ac3f0dd3b68b4dbf42a79ebb846d1de568 Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Fri, 31 Aug 2007 00:04:24 +0000 Subject: Issue #1066: implement PEP 3109, 2/3 of PEP 3134. --- Python/symtable.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Python/symtable.c') diff --git a/Python/symtable.c b/Python/symtable.c index 59eef02c747..83e571e6747 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -1101,13 +1101,11 @@ symtable_visit_stmt(struct symtable *st, stmt_ty s) VISIT_SEQ(st, stmt, s->v.If.orelse); break; case Raise_kind: - if (s->v.Raise.type) { - VISIT(st, expr, s->v.Raise.type); - if (s->v.Raise.inst) { - VISIT(st, expr, s->v.Raise.inst); - if (s->v.Raise.tback) - VISIT(st, expr, s->v.Raise.tback); - } + if (s->v.Raise.exc) { + VISIT(st, expr, s->v.Raise.exc); + if (s->v.Raise.cause) { + VISIT(st, expr, s->v.Raise.cause); + } } break; case TryExcept_kind: -- cgit v1.2.3