]> granicus.if.org Git - python/commitdiff
remove check for case handled in sub-function
authorBenjamin Peterson <benjamin@python.org>
Thu, 11 Jun 2009 22:29:23 +0000 (22:29 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 11 Jun 2009 22:29:23 +0000 (22:29 +0000)
Python/ast.c

index 2cc41b274f16e015147f28587585e79dc98f2a53..b3f4fcb6c08748c519f1406b7f02e4e0c5c82e1c 100644 (file)
@@ -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);