mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-43413: Revert changes in set.__init__ (GH-28403)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
This commit is contained in:
parent
1944434b44
commit
ad4857884b
4 changed files with 8 additions and 6 deletions
|
@ -1946,9 +1946,7 @@ set_init(PySetObject *self, PyObject *args, PyObject *kwds)
|
|||
{
|
||||
PyObject *iterable = NULL;
|
||||
|
||||
if ((Py_IS_TYPE(self, &PySet_Type) ||
|
||||
Py_TYPE(self)->tp_new == PySet_Type.tp_new) &&
|
||||
!_PyArg_NoKeywords("set", kwds))
|
||||
if (!_PyArg_NoKeywords("set", kwds))
|
||||
return -1;
|
||||
if (!PyArg_UnpackTuple(args, Py_TYPE(self)->tp_name, 0, 1, &iterable))
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue