Mercurial > cpython-lru_cache-weakref
diff Python/symtable.c @ 70499:e0e663132363
unify TryExcept and TryFinally (closes #12199)
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 29 May 2011 11:43:10 -0500 |
| parents | 9b11cc4e2918 |
| children | 2d62ee4e7d98 |
line wrap: on
line diff
--- a/Python/symtable.c Sun May 29 18:13:51 2011 +0200 +++ b/Python/symtable.c Sun May 29 11:43:10 2011 -0500 @@ -1211,14 +1211,11 @@ } } break; - case TryExcept_kind: - VISIT_SEQ(st, stmt, s->v.TryExcept.body); - VISIT_SEQ(st, stmt, s->v.TryExcept.orelse); - VISIT_SEQ(st, excepthandler, s->v.TryExcept.handlers); - break; - case TryFinally_kind: - VISIT_SEQ(st, stmt, s->v.TryFinally.body); - VISIT_SEQ(st, stmt, s->v.TryFinally.finalbody); + case Try_kind: + VISIT_SEQ(st, stmt, s->v.Try.body); + VISIT_SEQ(st, stmt, s->v.Try.orelse); + VISIT_SEQ(st, excepthandler, s->v.Try.handlers); + VISIT_SEQ(st, stmt, s->v.Try.finalbody); break; case Assert_kind: VISIT(st, expr, s->v.Assert.test);
