mirror of https://github.com/python/cpython
Eliminate an unnecessary test on a common code path.
This commit is contained in:
parent
deb4da500b
commit
325d169a54
|
@ -40,9 +40,7 @@ PyTuple_New(register int size)
|
|||
#endif
|
||||
return (PyObject *) op;
|
||||
}
|
||||
if (0 < size && size < MAXSAVESIZE &&
|
||||
(op = free_tuples[size]) != NULL)
|
||||
{
|
||||
if (size < MAXSAVESIZE && (op = free_tuples[size]) != NULL) {
|
||||
free_tuples[size] = (PyTupleObject *) op->ob_item[0];
|
||||
num_free_tuples[size]--;
|
||||
#ifdef COUNT_ALLOCS
|
||||
|
|
Loading…
Reference in New Issue