diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-04-12 23:33:28 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-04-12 23:33:28 (GMT) |
commit | bd3e362089c9fab1028a1bf58b4e762851a32244 (patch) | |
tree | f57c18c9571bc313369e755521f0432985b80a97 /Python/ast.c | |
parent | 3780542039d109ae747816dae208208be93240d6 (diff) | |
download | cpython-bd3e362089c9fab1028a1bf58b4e762851a32244.zip cpython-bd3e362089c9fab1028a1bf58b4e762851a32244.tar.gz cpython-bd3e362089c9fab1028a1bf58b4e762851a32244.tar.bz2 |
make assigning to a bytes literal a syntax error (closes #11506)
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c index 590bc90..d97e951 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: |