summaryrefslogtreecommitdiff
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2010-01-09 23:35:54 +0000
committerAlexandre Vassalotti <alexandre@peadrop.com>2010-01-09 23:35:54 +0000
commitee936a21308679654b2d458166ff094ed735fef7 (patch)
tree612cd109e8ede4080f58f30ece3212d8e0f996d2 /Python/symtable.c
parente36561352895170f28f77f0b4ec4292e35d1cc01 (diff)
downloadcpython-git-ee936a21308679654b2d458166ff094ed735fef7.tar.gz
Issue #2335: Backport set literals syntax from Python 3.x.
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 d782a19547..5e735ccd28 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -1211,6 +1211,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:
VISIT(st, expr, e->v.ListComp.elt);
VISIT_SEQ(st, comprehension, e->v.ListComp.generators);