From: Georg Brandl Date: Sun, 29 Oct 2006 08:47:08 +0000 (+0000) Subject: Clean up a leftover from old listcomp generation code. X-Git-Tag: v2.6a1~2497 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c4fb8d6012f4ffc534e1ba8c9e50cb139398239;p=python Clean up a leftover from old listcomp generation code. --- diff --git a/Python/compile.c b/Python/compile.c index 939c5edd0e..ae734ffe2c 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2619,7 +2619,7 @@ compiler_listcomp_generator(struct compiler *c, PyObject *tmpname, } ADDOP_JABS(c, JUMP_ABSOLUTE, start); compiler_use_next_block(c, anchor); - /* delete the append method added to locals */ + /* delete the temporary list name added to locals */ if (gen_index == 1) if (!compiler_nameop(c, tmpname, Del)) return 0; @@ -2632,15 +2632,9 @@ compiler_listcomp(struct compiler *c, expr_ty e) { identifier tmp; int rc = 0; - static identifier append; asdl_seq *generators = e->v.ListComp.generators; assert(e->kind == ListComp_kind); - if (!append) { - append = PyString_InternFromString("append"); - if (!append) - return 0; - } tmp = compiler_new_tmpname(c); if (!tmp) return 0;