commit | 16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jan 10 18:51:35 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jan 10 18:51:35 2007 +0000 |
tree | 459a125a265abb16399baeea398ab116b7bf4f9b | |
parent | b940e113bf90ff71b0ef57414ea2beea9d2a4bc0 [diff] [blame] |
Some more changes related to the new except syntax and semantics, by Collin Winter.
diff --git a/Python/symtable.c b/Python/symtable.c index 708e18c..d275cb9 100644 --- a/Python/symtable.c +++ b/Python/symtable.c
@@ -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; }