Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and

_PyArg_NoPositional() now are macros.
This commit is contained in:
Serhiy Storchaka 2017-02-06 10:41:46 +02:00
parent 6aee6fbce8
commit 68a001dd59
4 changed files with 16 additions and 6 deletions

View file

@ -1084,8 +1084,7 @@ frozenset_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
PyObject *iterable = NULL, *result;
if (kwds != NULL && type == &PyFrozenSet_Type
&& !_PyArg_NoKeywords("frozenset()", kwds))
if (type == &PyFrozenSet_Type && !_PyArg_NoKeywords("frozenset()", kwds))
return NULL;
if (!PyArg_UnpackTuple(args, type->tp_name, 0, 1, &iterable))
@ -2002,7 +2001,7 @@ set_init(PySetObject *self, PyObject *args, PyObject *kwds)
{
PyObject *iterable = NULL;
if (kwds != NULL && !_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;