Skip to content

Commit cd3775b

Browse files
committed
use 'dummy' for NOARGS method
1 parent 337cb29 commit cd3775b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Modules/_collectionsmodule.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,7 +2027,7 @@ dequeiter_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
20272027
}
20282028

20292029
static PyObject *
2030-
dequeiter_len(PyObject *op, PyObject *Py_UNUSED(args))
2030+
dequeiter_len(PyObject *op, PyObject *Py_UNUSED(dummy))
20312031
{
20322032
dequeiterobject *it = _dequeiterobject_CAST(op);
20332033
Py_ssize_t len = FT_ATOMIC_LOAD_SSIZE(it->counter);
@@ -2037,7 +2037,7 @@ dequeiter_len(PyObject *op, PyObject *Py_UNUSED(args))
20372037
PyDoc_STRVAR(length_hint_doc, "Private method returning an estimate of len(list(it)).");
20382038

20392039
static PyObject *
2040-
dequeiter_reduce(PyObject *op, PyObject *Py_UNUSED(args))
2040+
dequeiter_reduce(PyObject *op, PyObject *Py_UNUSED(dummy))
20412041
{
20422042
dequeiterobject *it = _dequeiterobject_CAST(op);
20432043
PyTypeObject *ty = Py_TYPE(it);
@@ -2250,7 +2250,7 @@ new_defdict(PyObject *op, PyObject *arg)
22502250
PyDoc_STRVAR(defdict_copy_doc, "D.copy() -> a shallow copy of D.");
22512251

22522252
static PyObject *
2253-
defdict_copy(PyObject *op, PyObject *Py_UNUSED(args))
2253+
defdict_copy(PyObject *op, PyObject *Py_UNUSED(dummy))
22542254
{
22552255
/* This calls the object's class. That only works for subclasses
22562256
whose class constructor has the same signature. Subclasses that
@@ -2260,7 +2260,7 @@ defdict_copy(PyObject *op, PyObject *Py_UNUSED(args))
22602260
}
22612261

22622262
static PyObject *
2263-
defdict_reduce(PyObject *op, PyObject *Py_UNUSED(args))
2263+
defdict_reduce(PyObject *op, PyObject *Py_UNUSED(dummy))
22642264
{
22652265
/* __reduce__ must return a 5-tuple as follows:
22662266
@@ -2730,7 +2730,7 @@ tuplegetter_dealloc(PyObject *self)
27302730
}
27312731

27322732
static PyObject*
2733-
tuplegetter_reduce(PyObject *op, PyObject *Py_UNUSED(args))
2733+
tuplegetter_reduce(PyObject *op, PyObject *Py_UNUSED(dummy))
27342734
{
27352735
_tuplegetterobject *self = _tuplegetterobject_CAST(op);
27362736
return Py_BuildValue("(O(nO))", (PyObject *)Py_TYPE(self),

0 commit comments

Comments
 (0)