[Python-checkins] cpython: Issue #26880: Removed redundant checks in set.__init__.
serhiy.storchaka
python-checkins at python.org
Fri Apr 29 04:32:16 EDT 2016
https://hg.python.org/cpython/rev/ed6345cb08ab
changeset: 101179:ed6345cb08ab
parent: 101177:22caee20223e
user: Serhiy Storchaka <storchaka at gmail.com>
date: Fri Apr 29 11:31:52 2016 +0300
summary:
Issue #26880: Removed redundant checks in set.__init__.
files:
Objects/setobject.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/Objects/setobject.c b/Objects/setobject.c
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -1998,9 +1998,7 @@
{
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;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list