Use METH_VARARGS instead of numeric constant 1 in method def. tables

This commit is contained in:
Andrew M. Kuchling 2000-08-03 02:06:16 +00:00
parent 14f515844d
commit e365fb8d1f
12 changed files with 178 additions and 107 deletions

View file

@ -617,7 +617,8 @@ IO_StringIO(PyObject *self, PyObject *args) {
/* List of methods defined in the module */
static struct PyMethodDef IO_methods[] = {
{"StringIO", (PyCFunction)IO_StringIO, 1, IO_StringIO__doc__},
{"StringIO", (PyCFunction)IO_StringIO,
METH_VARARGS, IO_StringIO__doc__},
{NULL, NULL} /* sentinel */
};