Mercurial > cpython-lru_cache-weakref
diff Python/symtable.c @ 40588:4bab65fcca8e
Some more changes related to the new except syntax and semantics,
by Collin Winter.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 10 Jan 2007 18:51:35 +0000 |
| parents | 54cd47788811 |
| children | e9a6234b26af |
line wrap: on
line diff
--- a/Python/symtable.c Wed Jan 10 16:19:56 2007 +0000 +++ b/Python/symtable.c Wed Jan 10 18:51:35 2007 +0000 @@ -1335,7 +1335,8 @@ if (eh->type) VISIT(st, expr, eh->type); if (eh->name) - VISIT(st, expr, eh->name); + if (!symtable_add_def(st, eh->name, DEF_LOCAL)) + return 0; VISIT_SEQ(st, stmt, eh->body); return 1; }
