summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2017-01-09 15:39:46 (GMT)
committerRaymond Hettinger <python@rcn.com>2017-01-09 15:39:46 (GMT)
commit68191f8a9c90cb538042179ac5a961c8d29eeb07 (patch)
treeee0958f3355f5bcb0f588b9fc3ae233a482cf5a9 /Modules
parent3c29fd00747467f738ab23343b7f79abb721744a (diff)
downloadcpython-68191f8a9c90cb538042179ac5a961c8d29eeb07.zip
cpython-68191f8a9c90cb538042179ac5a961c8d29eeb07.tar.gz
cpython-68191f8a9c90cb538042179ac5a961c8d29eeb07.tar.bz2
Backed out changeset ea064ff3c10f
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_functoolsmodule.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c
index bc34c21..62b45e9 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;
}