summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2011-10-30 11:55:02 (GMT)
committerPetri Lehtinen <petri@digip.org>2011-10-30 11:55:56 (GMT)
commit5f4d8706684c600d4a33b19bda86d3c9e4840c2c (patch)
treec0317fc8888513b79803a41c88eb71e7c65944ea /Objects
parent59dba38166160163ce4ac473933ab1c74b6222de (diff)
downloadcpython-5f4d8706684c600d4a33b19bda86d3c9e4840c2c.zip
cpython-5f4d8706684c600d4a33b19bda86d3c9e4840c2c.tar.gz
cpython-5f4d8706684c600d4a33b19bda86d3c9e4840c2c.tar.bz2
Avoid unnecessary recursive function calls (closes #10519)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/setobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 802f45f..9fea0c9 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -1871,7 +1871,7 @@ set_contains(PySetObject *so, PyObject *key)
tmpkey = make_new_set(&PyFrozenSet_Type, key);
if (tmpkey == NULL)
return -1;
- rv = set_contains(so, tmpkey);
+ rv = set_contains_key(so, tmpkey);
Py_DECREF(tmpkey);
}
return rv;
@@ -1936,7 +1936,7 @@ set_discard(PySetObject *so, PyObject *key)
tmpkey = make_new_set(&PyFrozenSet_Type, key);
if (tmpkey == NULL)
return NULL;
- result = set_discard(so, tmpkey);
+ result = set_discard_key(so, tmpkey);
Py_DECREF(tmpkey);
return result;
}