summaryrefslogtreecommitdiff
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-08-28 16:38:22 +0000
committerGeorg Brandl <georg@python.org>2006-08-28 16:38:22 +0000
commit3b849e1323ecb178feb83990ae31b42f71fbe98a (patch)
treee80ef94f8199d6ba04f7b4259e5cb6c20506423e /Python/symtable.c
parenta56c2e2dbc124bac2ff7e104f67b83514f1be363 (diff)
downloadcpython-3b849e1323ecb178feb83990ae31b42f71fbe98a.tar.gz
Fix set literals not being visited in symtable creation.
Diffstat (limited to 'Python/symtable.c')
-rw-r--r--Python/symtable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/symtable.c b/Python/symtable.c
index bf15960785..64eeb53304 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -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;