summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index d817727..2a53cba 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -70,8 +70,6 @@ frozenset_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
static PyObject *
set_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
- PyObject *iterable = NULL;
-
return make_new_set(type, NULL);
}
@@ -781,11 +779,12 @@ If the element is not a member, raise a KeyError.");
static PyObject *
set_discard(PySetObject *so, PyObject *item)
{
- if (PyDict_DelItem(so->data, item) == -1)
+ if (PyDict_DelItem(so->data, item) == -1) {
if (PyErr_ExceptionMatches(PyExc_KeyError))
PyErr_Clear();
else
return NULL;
+ }
Py_INCREF(Py_None);
return Py_None;
}