From: Serhiy Storchaka Date: Fri, 29 Apr 2016 08:31:52 +0000 (+0300) Subject: Issue #26880: Removed redundant checks in set.__init__. X-Git-Tag: v3.6.0a1~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa070298e982a39304cb5b6a326b534820d9cad0;p=thirdparty%2FPython%2Fcpython.git Issue #26880: Removed redundant checks in set.__init__. --- diff --git a/Objects/setobject.c b/Objects/setobject.c index ac71b2ccee49..3d0f355fe7fe 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -1998,9 +1998,7 @@ set_init(PySetObject *self, PyObject *args, PyObject *kwds) { PyObject *iterable = NULL; - if (!PyAnySet_Check(self)) - return -1; - if (kwds != NULL && PySet_Check(self) && !_PyArg_NoKeywords("set()", kwds)) + if (kwds != NULL && !_PyArg_NoKeywords("set()", kwds)) return -1; if (!PyArg_UnpackTuple(args, Py_TYPE(self)->tp_name, 0, 1, &iterable)) return -1;