mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
Fix set literals not being visited in symtable creation.
This commit is contained in:
parent
86e58e239e
commit
17ab9a02b5
2 changed files with 4 additions and 1 deletions
|
@ -1147,6 +1147,9 @@ symtable_visit_expr(struct symtable *st, expr_ty e)
|
|||
VISIT_SEQ(st, expr, e->v.Dict.keys);
|
||||
VISIT_SEQ(st, expr, e->v.Dict.values);
|
||||
break;
|
||||
case Set_kind:
|
||||
VISIT_SEQ(st, expr, e->v.Set.elts);
|
||||
break;
|
||||
case ListComp_kind:
|
||||
if (!symtable_new_tmpname(st))
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue