mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
Patch #542659: Eliminate duplicate check for NULL of freevars/cellvars.
This commit is contained in:
parent
88c9344986
commit
314fc79ce8
1 changed files with 0 additions and 4 deletions
|
|
@ -286,11 +286,7 @@ PyCode_New(int argcount, int nlocals, int stacksize, int flags,
|
||||||
}
|
}
|
||||||
intern_strings(names);
|
intern_strings(names);
|
||||||
intern_strings(varnames);
|
intern_strings(varnames);
|
||||||
if (freevars == NULL)
|
|
||||||
freevars = PyTuple_New(0);
|
|
||||||
intern_strings(freevars);
|
intern_strings(freevars);
|
||||||
if (cellvars == NULL)
|
|
||||||
cellvars = PyTuple_New(0);
|
|
||||||
intern_strings(cellvars);
|
intern_strings(cellvars);
|
||||||
/* Intern selected string constants */
|
/* Intern selected string constants */
|
||||||
for (i = PyTuple_Size(consts); --i >= 0; ) {
|
for (i = PyTuple_Size(consts); --i >= 0; ) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue