Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93c1e23

Browse files
committed
Use METH_VARARGS rather than METH_OLDARGS implicitly (args are ignored)
1 parent 28faa1b commit 93c1e23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ bozo_func(PyObject *self, PyObject *args)
878878
return NULL;
879879
}
880880

881-
static PyMethodDef bozo_ml = {"__getstate__", bozo_func};
881+
static PyMethodDef bozo_ml = {"__getstate__", bozo_func, METH_VARARGS};
882882

883883
static PyObject *bozo_obj = NULL;
884884

0 commit comments

Comments
 (0)