Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 314fc79

Browse files
committed
Patch #542659: Eliminate duplicate check for NULL of freevars/cellvars.
1 parent 88c9344 commit 314fc79

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Python/compile.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,7 @@ PyCode_New(int argcount, int nlocals, int stacksize, int flags,
286286
}
287287
intern_strings(names);
288288
intern_strings(varnames);
289-
if (freevars == NULL)
290-
freevars = PyTuple_New(0);
291289
intern_strings(freevars);
292-
if (cellvars == NULL)
293-
cellvars = PyTuple_New(0);
294290
intern_strings(cellvars);
295291
/* Intern selected string constants */
296292
for (i = PyTuple_Size(consts); --i >= 0; ) {

0 commit comments

Comments
 (0)