diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-02-06 08:41:46 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-02-06 08:41:46 (GMT) |
commit | 68a001dd59e2f0c00cb703200e801d0e6be63546 (patch) | |
tree | 78bbb59644b34629569a2f2ccaa2ce40dd48dbb8 /Objects | |
parent | 6aee6fbce8f3d7b8c8eae5d8f88fc2282698a6dc (diff) | |
download | cpython-68a001dd59e2f0c00cb703200e801d0e6be63546.zip cpython-68a001dd59e2f0c00cb703200e801d0e6be63546.tar.gz cpython-68a001dd59e2f0c00cb703200e801d0e6be63546.tar.bz2 |
Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and
_PyArg_NoPositional() now are macros.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/setobject.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c index 4f04f49..2ccf183 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -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; |