mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix two erroneous error messages.
This commit is contained in:
parent
975e725fc7
commit
8ffc1410e2
1 changed files with 2 additions and 2 deletions
|
@ -3203,13 +3203,13 @@ com_assign(struct compiling *c, node *n, int assigning, node *augn)
|
|||
case testlist_gexp:
|
||||
if (NCH(n) > 1) {
|
||||
if (TYPE(CHILD(n, 1)) == gen_for) {
|
||||
com_error(c, PyExc_SystemError,
|
||||
com_error(c, PyExc_SyntaxError,
|
||||
"assign to generator expression not possible");
|
||||
return;
|
||||
}
|
||||
if (assigning > OP_APPLY) {
|
||||
com_error(c, PyExc_SyntaxError,
|
||||
"augmented assign to tuple not possible");
|
||||
"augmented assign to generator expression not possible");
|
||||
return;
|
||||
}
|
||||
com_assign_sequence(c, n, assigning);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue