diff Python/ast.c @ 54702:5306b84d4fce legacy-trunk

remove check for case handled in sub-function
author Benjamin Peterson <benjamin@python.org>
date Thu, 11 Jun 2009 22:29:23 +0000
parents 027444810e3f
children 0c357e3fc3d0
line wrap: on
line diff
--- a/Python/ast.c	Thu Jun 11 22:08:10 2009 +0000
+++ b/Python/ast.c	Thu Jun 11 22:29:23 2009 +0000
@@ -1347,9 +1347,6 @@
         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);