diff Python/symtable.c @ 54810:8700089eccd4 legacy-trunk

don't need to add the name 'lambda' as assigned
author Benjamin Peterson <benjamin@python.org>
date Sun, 21 Jun 2009 23:01:07 +0000
parents f634c5455b4f
children 917497e2509c
line wrap: on
line diff
--- a/Python/symtable.c	Sun Jun 21 21:03:41 2009 +0000
+++ b/Python/symtable.c	Sun Jun 21 23:01:07 2009 +0000
@@ -1213,8 +1213,7 @@
 		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);