diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-02-06 10:41:46 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-02-06 10:41:46 +0200 |
commit | 54ab9ca906471f8a49e22c7f85d4f34c2ef7212c (patch) | |
tree | e52219261fbd532e701813327faf7dc4c035aa5e /Objects | |
parent | 1ebed331c127c8ca4a279c5121cfd4a9de3cfda8 (diff) | |
download | cpython-54ab9ca906471f8a49e22c7f85d4f34c2ef7212c.tar.gz |
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 4f04f49efa..2ccf183e3c 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; |