summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-25 05:41:11 +0000
committerThomas Wouters <thomas@python.org>2000-08-25 05:41:11 +0000
commitc037e2bf9acdeb5bfff3d0174c26cfec2e929e67 (patch)
treec5d0ed6a981d440efbe7fef9a1c3d2931bfd24f1 /Python/compile.c
parent3508487770747a2029b478e3411f9f06a2baa87d (diff)
downloadcpython-c037e2bf9acdeb5bfff3d0174c26cfec2e929e67.tar.gz
Fix allowable node-types for assignment, need to add 'listmaker'.
(This fix is a bit broken, just as the test already was: the test for testlist and listmaker are done always, whereas the test for exprlist and the actual abort() are only done if Py_DEBUG is defined. Suggestions welcome, I guess ;)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index c761e5eee6..0bfae14994 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1959,7 +1959,7 @@ static void
com_assign_sequence(struct compiling *c, node *n, int assigning)
{
int i;
- if (TYPE(n) != testlist)
+ if (TYPE(n) != testlist && TYPE(n) != listmaker)
REQ(n, exprlist);
if (assigning) {
i = (NCH(n)+1)/2;