summaryrefslogtreecommitdiff
path: root/Modules/_operator.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-02-06 10:41:46 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2017-02-06 10:41:46 +0200
commit54ab9ca906471f8a49e22c7f85d4f34c2ef7212c (patch)
treee52219261fbd532e701813327faf7dc4c035aa5e /Modules/_operator.c
parent1ebed331c127c8ca4a279c5121cfd4a9de3cfda8 (diff)
downloadcpython-54ab9ca906471f8a49e22c7f85d4f34c2ef7212c.tar.gz
Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and
_PyArg_NoPositional() now are macros.
Diffstat (limited to 'Modules/_operator.c')
-rw-r--r--Modules/_operator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_operator.c b/Modules/_operator.c
index 9374b8e8a5..10d7874579 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;