]> granicus.if.org Git - python/commitdiff
Fix old not-reading-pep-308-right artifact.
authorThomas Wouters <thomas@python.org>
Mon, 27 Feb 2006 16:46:22 +0000 (16:46 +0000)
committerThomas Wouters <thomas@python.org>
Mon, 27 Feb 2006 16:46:22 +0000 (16:46 +0000)
Python/ast.c

index 3f2a9f3e2d4dcb5b2336a91ea2666633a52f0f55..27eabe565b6c315ad812fedbf6a4547349392c65 100644 (file)
@@ -853,7 +853,7 @@ ast_for_ifexpr(struct compiling *c, const node *n)
     /* test: or_test 'if' or_test 'else' test */ 
     expr_ty expression, body, orelse;
 
-    assert(NCH(n) >= 3);
+    assert(NCH(n) == 5);
     body = ast_for_expr(c, CHILD(n, 0));
     if (!body)
        return NULL;