mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Some more changes related to the new except syntax and semantics,
by Collin Winter.
This commit is contained in:
parent
b940e113bf
commit
16be03e4a2
10 changed files with 46 additions and 32 deletions
|
@ -1335,7 +1335,8 @@ symtable_visit_excepthandler(struct symtable *st, excepthandler_ty eh)
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue