diff options
| author | Benjamin Peterson <benjamin@python.org> | 2011-04-12 18:33:28 -0500 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2011-04-12 18:33:28 -0500 |
| commit | 7ba4d62b0d593abc88dbe54178250eabb14a01d9 (patch) | |
| tree | 3e3fba620299f19e84b6010eaa56214131dcff95 /Python | |
| parent | bd8dfc2a177fe67367b474ba58ae818a4354c79b (diff) | |
| download | cpython-7ba4d62b0d593abc88dbe54178250eabb14a01d9.tar.gz | |
make assigning to a bytes literal a syntax error (closes #11506)
Diffstat (limited to 'Python')
| -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 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: |
