summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-04-12 18:33:28 -0500
committerBenjamin Peterson <benjamin@python.org>2011-04-12 18:33:28 -0500
commit7ba4d62b0d593abc88dbe54178250eabb14a01d9 (patch)
tree3e3fba620299f19e84b6010eaa56214131dcff95 /Python/ast.c
parentbd8dfc2a177fe67367b474ba58ae818a4354c79b (diff)
downloadcpython-7ba4d62b0d593abc88dbe54178250eabb14a01d9.tar.gz
make assigning to a bytes literal a syntax error (closes #11506)
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c1
1 files changed, 1 insertions, 0 deletions
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: