]> granicus.if.org Git - python/commitdiff
Clean up a leftover from old listcomp generation code.
authorGeorg Brandl <georg@python.org>
Sun, 29 Oct 2006 08:47:08 +0000 (08:47 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 29 Oct 2006 08:47:08 +0000 (08:47 +0000)
Python/compile.c

index 939c5edd0e8686321d60ab45b8ade6a695143f20..ae734ffe2c79103ae5db48769bc3093d8ab71ecb 100644 (file)
@@ -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;