From: Benjamin Peterson Date: Thu, 11 Jun 2009 22:29:23 +0000 (+0000) Subject: remove check for case handled in sub-function X-Git-Tag: v2.7a1~973 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4efb5d0b82becae8435057be59e20044f22130df;p=python remove check for case handled in sub-function --- diff --git a/Python/ast.c b/Python/ast.c index 2cc41b274f..b3f4fcb6c0 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -1347,9 +1347,6 @@ ast_for_atom(struct compiling *c, const node *n) if (TYPE(ch) == yield_expr) return ast_for_expr(c, ch); - if ((NCH(ch) > 1) && (TYPE(CHILD(ch, 1)) == gen_for)) - return ast_for_genexp(c, ch); - return ast_for_testlist_gexp(c, ch); case LSQB: /* list (or list comprehension) */ ch = CHILD(n, 1);