remove check for case handled in sub-function

This commit is contained in:
Benjamin Peterson 2009-06-11 22:29:23 +00:00
parent 2742e7e584
commit 4efb5d0b82

View 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);