summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-27 11:05:02 (GMT)
committerGitHub <noreply@github.com>2018-11-27 11:05:02 (GMT)
commit81524022d0c0df7a41f9b2b2df41e2ebe140e610 (patch)
tree1b8156249d1349c984770e31048f4f424e357965 /Objects/dictobject.c
parent4a934d490fac779d8954a8292369c4506bab23fa (diff)
downloadcpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.zip
cpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.tar.gz
cpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.tar.bz2
bpo-33012: Fix signatures of METH_NOARGS funstions. (GH-10736)
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 24561dd..2f108bd 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -4201,7 +4201,7 @@ dictviews_isdisjoint(PyObject *self, PyObject *other)
PyDoc_STRVAR(isdisjoint_doc,
"Return True if the view and the given iterable have a null intersection.");
-static PyObject* dictkeys_reversed(_PyDictViewObject *dv);
+static PyObject* dictkeys_reversed(_PyDictViewObject *dv, PyObject *Py_UNUSED(ignored));
PyDoc_STRVAR(reversed_keys_doc,
"Return a reverse iterator over the dict keys.");
@@ -4254,7 +4254,7 @@ dictkeys_new(PyObject *dict, PyObject *Py_UNUSED(ignored))
}
static PyObject *
-dictkeys_reversed(_PyDictViewObject *dv)
+dictkeys_reversed(_PyDictViewObject *dv, PyObject *Py_UNUSED(ignored))
{
if (dv->dv_dict == NULL) {
Py_RETURN_NONE;