Backed out changeset ea064ff3c10f
This commit is contained in:
parent
3c29fd0074
commit
68191f8a9c
|
@ -709,12 +709,6 @@ lru_cache_make_key(PyObject *args, PyObject *kwds, int typed)
|
|||
|
||||
/* short path, key will match args anyway, which is a tuple */
|
||||
if (!typed && !kwds) {
|
||||
if (PyTuple_GET_SIZE(args) == 1) {
|
||||
/* Save space and improve speed by unwrapping 1-tuples */
|
||||
key = PyTuple_GET_ITEM(args, 0);
|
||||
Py_INCREF(key);
|
||||
return key;
|
||||
}
|
||||
Py_INCREF(args);
|
||||
return args;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue