Commit 68191f8a authored by Raymond Hettinger's avatar Raymond Hettinger

Backed out changeset ea064ff3c10f

parent 3c29fd00
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment