]> granicus.if.org Git - python/commitdiff
Use METH_VARARGS rather than METH_OLDARGS implicitly (args are ignored)
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 31 Mar 2002 16:06:11 +0000 (16:06 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 31 Mar 2002 16:06:11 +0000 (16:06 +0000)
Objects/typeobject.c

index a5967210cbf0e5a8077ccc3daf6e3516569b8c3a..474a97c322c2116e73fe8803bade32112b3096f4 100644 (file)
@@ -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;