From: Benjamin Peterson Date: Sun, 21 Jun 2009 23:01:07 +0000 (+0000) Subject: don't need to add the name 'lambda' as assigned X-Git-Tag: v2.7a1~921 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f67caf8523341a7a8430c2065d0e6fa7898782da;p=python don't need to add the name 'lambda' as assigned --- diff --git a/Python/symtable.c b/Python/symtable.c index 023c93398d..ab5f966074 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -1213,8 +1213,7 @@ symtable_visit_expr(struct symtable *st, expr_ty e) VISIT(st, expr, e->v.UnaryOp.operand); break; case Lambda_kind: { - if (!GET_IDENTIFIER(lambda) || - !symtable_add_def(st, lambda, DEF_LOCAL)) + if (!GET_IDENTIFIER(lambda)) return 0; if (e->v.Lambda.args->defaults) VISIT_SEQ(st, expr, e->v.Lambda.args->defaults);