cpython: 7ddc7b339a8b (original) (raw)
Mercurial > cpython
changeset 73202:7ddc7b339a8b 2.7
Fix the return value of set_discard (issue #10519) [#10519]
Petri Lehtinen petri@digip.org | |
---|---|
date | Sun, 30 Oct 2011 14:31:27 +0200 |
parents | 72de2ac8bb4f |
children | eef42c4f295d |
files | Objects/setobject.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-)[+] [-] Objects/setobject.c 5 |
line wrap: on
line diff
--- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -1936,9 +1936,10 @@ set_discard(PySetObject *so, PyObject *k tmpkey = make_new_set(&PyFrozenSet_Type, key); if (tmpkey == NULL) return NULL;
result = set_discard_key(so, tmpkey);[](#l1.7)
rv = set_discard_key(so, tmpkey);[](#l1.8) Py_DECREF(tmpkey);[](#l1.9)
return result;[](#l1.10)