diff options
author | Raymond Hettinger <python@rcn.com> | 2004-09-29 21:47:10 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-09-29 21:47:10 (GMT) |
commit | 8ffc1410e28ade7bfe247fd12aac648a7738c0c8 (patch) | |
tree | c7e0474bbe41b92acb4c60bc36fefa3473df27bc | |
parent | 975e725fc78e251a08bc499b71eaa142fb9a7fbb (diff) | |
download | cpython-8ffc1410e28ade7bfe247fd12aac648a7738c0c8.zip cpython-8ffc1410e28ade7bfe247fd12aac648a7738c0c8.tar.gz cpython-8ffc1410e28ade7bfe247fd12aac648a7738c0c8.tar.bz2 |
Fix two erroneous error messages.
-rw-r--r-- | Python/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index 5a57a47..24ca440 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); |