From: Martin v. Löwis Date: Sun, 14 Apr 2002 09:53:49 +0000 (+0000) Subject: Patch #542659: Eliminate duplicate check for NULL of freevars/cellvars. X-Git-Tag: v2.3c1~5978 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=314fc79ce8ffa79fbe42d26a4dc350b901d9341b;p=thirdparty%2FPython%2Fcpython.git Patch #542659: Eliminate duplicate check for NULL of freevars/cellvars. --- diff --git a/Python/compile.c b/Python/compile.c index de0a8e235a63..4340522fd881 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; ) {