From 947ce58a9018d23cb1e5e8de550f2ba0e542248e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 24 Jun 2010 00:12:40 +0000 Subject: prevent assignment to set literals --- Python/ast.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index 41c0d28e1b..f8c83d934c 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -440,6 +440,7 @@ set_context(struct compiling *c, expr_ty e, expr_context_ty ctx, const node *n) expr_name = "dict comprehension"; break; case Dict_kind: + case Set_kind: case Num_kind: case Str_kind: expr_name = "literal"; -- cgit v1.2.1