mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Issue #1066: implement PEP 3109, 2/3 of PEP 3134.
This commit is contained in:
parent
150b7d7d02
commit
828f04ac3f
32 changed files with 761 additions and 253 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue