From: Thomas Wouters Date: Mon, 27 Feb 2006 16:46:22 +0000 (+0000) Subject: Fix old not-reading-pep-308-right artifact. X-Git-Tag: v2.5a0~523 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa8b6c5855d0a619778fb3557073a5ca3458585b;p=python Fix old not-reading-pep-308-right artifact. --- diff --git a/Python/ast.c b/Python/ast.c index 3f2a9f3e2d..27eabe565b 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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;