diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-06-19 00:03:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 00:03:58 (GMT) |
commit | a5442b26f46f1073d1eb78895d554be520105ecb (patch) | |
tree | 1a379f5da5dfe6875985fae1c57c6a35ffbf1014 /Tools | |
parent | b1e736113484c99acb57e4acb417b91a9e58e7ff (diff) | |
download | cpython-a5442b26f46f1073d1eb78895d554be520105ecb.zip cpython-a5442b26f46f1073d1eb78895d554be520105ecb.tar.gz cpython-a5442b26f46f1073d1eb78895d554be520105ecb.tar.bz2 |
[3.9] bpo-40334: Produce better error messages on invalid targets (GH-20106) (GH-20973)
* bpo-40334: Produce better error messages on invalid targets (GH-20106)
The following error messages get produced:
- `cannot delete ...` for invalid `del` targets
- `... is an illegal 'for' target` for invalid targets in for
statements
- `... is an illegal 'with' target` for invalid targets in
with statements
Additionally, a few `cut`s were added in various places before the
invocation of the `invalid_*` rule, in order to speed things
up.
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 01ece63d42b830df106948db0aefa6c1ba24416a)
Diffstat (limited to 'Tools')
0 files changed, 0 insertions, 0 deletions