From: Neal Norwitz Date: Sun, 31 Mar 2002 16:06:11 +0000 (+0000) Subject: Use METH_VARARGS rather than METH_OLDARGS implicitly (args are ignored) X-Git-Tag: v2.3c1~6212 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93c1e236671cfe9d18bac3fcdaf64d340c1fa953;p=thirdparty%2FPython%2Fcpython.git Use METH_VARARGS rather than METH_OLDARGS implicitly (args are ignored) --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index a5967210cbf0..474a97c322c2 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -878,7 +878,7 @@ bozo_func(PyObject *self, PyObject *args) return NULL; } -static PyMethodDef bozo_ml = {"__getstate__", bozo_func}; +static PyMethodDef bozo_ml = {"__getstate__", bozo_func, METH_VARARGS}; static PyObject *bozo_obj = NULL;