From: Raymond Hettinger Date: Mon, 9 Jan 2017 15:39:46 +0000 (-0800) Subject: Backed out changeset ea064ff3c10f X-Git-Tag: v3.7.0a1~1593 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68191f8a9c90cb538042179ac5a961c8d29eeb07;p=python Backed out changeset ea064ff3c10f --- diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index bc34c215b4..62b45e98cb 100644 --- a/Modules/_functoolsmodule.c +++ b/Modules/_functoolsmodule.c @@ -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; }