diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-27 11:05:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 11:05:02 (GMT) |
commit | 81524022d0c0df7a41f9b2b2df41e2ebe140e610 (patch) | |
tree | 1b8156249d1349c984770e31048f4f424e357965 /Objects | |
parent | 4a934d490fac779d8954a8292369c4506bab23fa (diff) | |
download | cpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.zip cpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.tar.gz cpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.tar.bz2 |
bpo-33012: Fix signatures of METH_NOARGS funstions. (GH-10736)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 4 | ||||
-rw-r--r-- | Objects/odictobject.c | 2 |
2 files changed, 3 insertions, 3 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; diff --git a/Objects/odictobject.c b/Objects/odictobject.c index bdd6108..0f54200 100644 --- a/Objects/odictobject.c +++ b/Objects/odictobject.c @@ -1804,7 +1804,7 @@ done: PyDoc_STRVAR(reduce_doc, "Return state information for pickling"); static PyObject * -odictiter_reduce(odictiterobject *di) +odictiter_reduce(odictiterobject *di, PyObject *Py_UNUSED(ignored)) { /* copy the iterator state */ odictiterobject tmp = *di; |