From: Raymond Hettinger Date: Wed, 29 Sep 2004 21:47:10 +0000 (+0000) Subject: Fix two erroneous error messages. X-Git-Tag: v2.4b1~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ffc1410e28ade7bfe247fd12aac648a7738c0c8;p=python Fix two erroneous error messages. --- diff --git a/Python/compile.c b/Python/compile.c index 5a57a47fb9..24ca440c3d 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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);