diff --git a/Objects/setobject.c b/Objects/setobject.c index d7990d8db44..8becb413cd3 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -1852,7 +1852,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; @@ -1917,7 +1917,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; }