Commit 98115f9d authored by Raymond Hettinger's avatar Raymond Hettinger

Fix two erroneous error messages.

parent ba033ddd
...@@ -3203,13 +3203,13 @@ com_assign(struct compiling *c, node *n, int assigning, node *augn) ...@@ -3203,13 +3203,13 @@ com_assign(struct compiling *c, node *n, int assigning, node *augn)
case testlist_gexp: case testlist_gexp:
if (NCH(n) > 1) { if (NCH(n) > 1) {
if (TYPE(CHILD(n, 1)) == gen_for) { if (TYPE(CHILD(n, 1)) == gen_for) {
com_error(c, PyExc_SystemError, com_error(c, PyExc_SyntaxError,
"assign to generator expression not possible"); "assign to generator expression not possible");
return; return;
} }
if (assigning > OP_APPLY) { if (assigning > OP_APPLY) {
com_error(c, PyExc_SyntaxError, com_error(c, PyExc_SyntaxError,
"augmented assign to tuple not possible"); "augmented assign to generator expression not possible");
return; return;
} }
com_assign_sequence(c, n, assigning); com_assign_sequence(c, n, assigning);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment