mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Use METH_VARARGS instead of numeric constant 1 in method def. tables
This commit is contained in:
parent
14f515844d
commit
e365fb8d1f
12 changed files with 178 additions and 107 deletions
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue