summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-10-29 08:47:08 (GMT)
committerGeorg Brandl <georg@python.org>2006-10-29 08:47:08 (GMT)
commit2c4fb8d6012f4ffc534e1ba8c9e50cb139398239 (patch)
tree55c7c8c292fe8fd09a520322f73b9c7a530f7bb5 /Python
parent8f99f81dfc5309205c2f93bd4dd205f97f586b0d (diff)
downloadcpython-2c4fb8d6012f4ffc534e1ba8c9e50cb139398239.zip
cpython-2c4fb8d6012f4ffc534e1ba8c9e50cb139398239.tar.gz
cpython-2c4fb8d6012f4ffc534e1ba8c9e50cb139398239.tar.bz2
Clean up a leftover from old listcomp generation code.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 939c5ed..ae734ff 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;