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 /Modules/_operator.c | |
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 'Modules/_operator.c')
-rw-r--r-- | Modules/_operator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_operator.c b/Modules/_operator.c index 9374b8e..10d7874 100644 --- a/Modules/_operator.c +++ b/Modules/_operator.c @@ -993,7 +993,7 @@ itemgetter_call(itemgetterobject *ig, PyObject *args, PyObject *kw) PyObject *obj, *result; Py_ssize_t i, nitems=ig->nitems; - if (kw != NULL && !_PyArg_NoKeywords("itemgetter", kw)) + if (!_PyArg_NoKeywords("itemgetter", kw)) return NULL; if (!PyArg_UnpackTuple(args, "itemgetter", 1, 1, &obj)) return NULL; @@ -1283,7 +1283,7 @@ attrgetter_call(attrgetterobject *ag, PyObject *args, PyObject *kw) PyObject *obj, *result; Py_ssize_t i, nattrs=ag->nattrs; - if (kw != NULL && !_PyArg_NoKeywords("attrgetter", kw)) + if (!_PyArg_NoKeywords("attrgetter", kw)) return NULL; if (!PyArg_UnpackTuple(args, "attrgetter", 1, 1, &obj)) return NULL; @@ -1527,7 +1527,7 @@ methodcaller_call(methodcallerobject *mc, PyObject *args, PyObject *kw) { PyObject *method, *obj, *result; - if (kw != NULL && !_PyArg_NoKeywords("methodcaller", kw)) + if (!_PyArg_NoKeywords("methodcaller", kw)) return NULL; if (!PyArg_UnpackTuple(args, "methodcaller", 1, 1, &obj)) return NULL; |