From 5f4d8706684c600d4a33b19bda86d3c9e4840c2c Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Sun, 30 Oct 2011 13:55:02 +0200 Subject: [PATCH] Avoid unnecessary recursive function calls (closes #10519) --- Objects/setobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/setobject.c b/Objects/setobject.c index 802f45f4c43..9fea0c96f10 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; }