]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #542659: Eliminate duplicate check for NULL of freevars/cellvars.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 14 Apr 2002 09:53:49 +0000 (09:53 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 14 Apr 2002 09:53:49 +0000 (09:53 +0000)
Python/compile.c

index de0a8e235a635845efbd7a9ffb595fbf65963ec5..4340522fd881a67defb7bd858abb15e28ddfc2e3 100644 (file)
@@ -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; ) {