summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-04-14 09:53:49 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-04-14 09:53:49 (GMT)
commit314fc79ce8ffa79fbe42d26a4dc350b901d9341b (patch)
tree084293e57e5b4b2897cb23b940b23651f44d21fa /Python
parent88c934498696a33bd52d00c48f00c1d0a9564361 (diff)
downloadcpython-314fc79ce8ffa79fbe42d26a4dc350b901d9341b.zip
cpython-314fc79ce8ffa79fbe42d26a4dc350b901d9341b.tar.gz
cpython-314fc79ce8ffa79fbe42d26a4dc350b901d9341b.tar.bz2
Patch #542659: Eliminate duplicate check for NULL of freevars/cellvars.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/compile.c b/Python/compile.c
index de0a8e2..4340522 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -286,11 +286,7 @@ PyCode_New(int argcount, int nlocals, int stacksize, int flags,
}
intern_strings(names);
intern_strings(varnames);
- if (freevars == NULL)
- freevars = PyTuple_New(0);
intern_strings(freevars);
- if (cellvars == NULL)
- cellvars = PyTuple_New(0);
intern_strings(cellvars);
/* Intern selected string constants */
for (i = PyTuple_Size(consts); --i >= 0; ) {