commit | e365fb8d1ff062d619f9476265e48e9ba8ab2bf6 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Thu Aug 03 02:06:16 2000 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Thu Aug 03 02:06:16 2000 +0000 |
tree | cb80331534a82abbadb7d45e9f654c3e97b1b3f5 | |
parent | 14f515844d3eae2818af3f1da7b32c38d8e73078 [diff] [blame] |
Use METH_VARARGS instead of numeric constant 1 in method def. tables
diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c index 5be59f4..749ebcb 100644 --- a/Modules/cStringIO.c +++ b/Modules/cStringIO.c
@@ -617,7 +617,8 @@ /* 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 */ };