From e365fb8d1ff062d619f9476265e48e9ba8ab2bf6 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Thu, 3 Aug 2000 02:06:16 +0000 Subject: Use METH_VARARGS instead of numeric constant 1 in method def. tables --- Modules/cStringIO.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Modules/cStringIO.c') diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c index 5be59f4784..749ebcb4d9 100644 --- a/Modules/cStringIO.c +++ b/Modules/cStringIO.c @@ -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 */ }; -- cgit v1.2.1