]> granicus.if.org Git - python/commitdiff
Fix two erroneous error messages.
authorRaymond Hettinger <python@rcn.com>
Wed, 29 Sep 2004 21:47:10 +0000 (21:47 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 29 Sep 2004 21:47:10 +0000 (21:47 +0000)
Python/compile.c

index 5a57a47fb9ee3609332160f2af7283b88d4df7b0..24ca440c3d56f1d2ade0353af70d9597acdca45c 100644 (file)
@@ -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);