cpython: f634102aca01 (original) (raw)
Mercurial > cpython
changeset 73204:f634102aca01
Fix the return value of set_discard (issue #10519) [#10519]
Petri Lehtinen petri@digip.org | |
---|---|
date | Sun, 30 Oct 2011 14:35:39 +0200 |
parents | a5c4ae15b59d(current diff)b643458a0108(diff) |
children | 728595c16acd |
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 @@ -1917,9 +1917,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)