diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:06:16 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:06:16 (GMT) |
commit | e365fb8d1ff062d619f9476265e48e9ba8ab2bf6 (patch) | |
tree | cb80331534a82abbadb7d45e9f654c3e97b1b3f5 /Modules/cStringIO.c | |
parent | 14f515844d3eae2818af3f1da7b32c38d8e73078 (diff) | |
download | cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.zip cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.gz cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.bz2 |
Use METH_VARARGS instead of numeric constant 1 in method def. tables
Diffstat (limited to 'Modules/cStringIO.c')
-rw-r--r-- | Modules/cStringIO.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ 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 */ }; |