diff options
author | Petri Lehtinen <petri@digip.org> | 2011-10-30 11:56:41 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2011-10-30 11:56:41 (GMT) |
commit | 5acc27ebe442306c667ddd2422afee2c38d2e1aa (patch) | |
tree | e1c96a015bd93fac36daad4e26f6e2802327c9d1 /Objects/setobject.c | |
parent | f54f6f520de39197b67b63deb3309ffa97cf55fb (diff) | |
download | cpython-5acc27ebe442306c667ddd2422afee2c38d2e1aa.zip cpython-5acc27ebe442306c667ddd2422afee2c38d2e1aa.tar.gz cpython-5acc27ebe442306c667ddd2422afee2c38d2e1aa.tar.bz2 |
Avoid unnecessary recursive function calls (closes #10519)
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r-- | Objects/setobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c index 48edad8..9f39fcb 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -1877,7 +1877,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; @@ -1942,7 +1942,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; } |