From bd3e362089c9fab1028a1bf58b4e762851a32244 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 12 Apr 2011 18:33:28 -0500 Subject: make assigning to a bytes literal a syntax error (closes #11506) --- 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 590bc90dab..d97e9518ce 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -469,6 +469,7 @@ set_context(struct compiling *c, expr_ty e, expr_context_ty ctx, const node *n) case Set_kind: case Num_kind: case Str_kind: + case Bytes_kind: expr_name = "literal"; break; case Ellipsis_kind: -- cgit v1.2.1