diff Python/compile.c @ 33626:cd58a9b4ba66 legacy-trunk

Fix two erroneous error messages.
author Raymond Hettinger <python@rcn.com>
date Wed, 29 Sep 2004 21:47:10 +0000
parents 27aa0e119330
children 0ae0bef10014
line wrap: on
line diff
--- a/Python/compile.c	Wed Sep 29 21:39:26 2004 +0000
+++ b/Python/compile.c	Wed Sep 29 21:47:10 2004 +0000
@@ -3203,13 +3203,13 @@
 		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);