mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Convert more modules to METH_VARARGS.
This commit is contained in:
parent
96a8c3954c
commit
bf92f46572
8 changed files with 139 additions and 113 deletions
|
@ -35,7 +35,7 @@ gestalt_gestalt(PyObject *self, PyObject *args)
|
|||
OSErr iErr;
|
||||
OSType selector;
|
||||
long response;
|
||||
if (!PyArg_Parse(args, "O&", PyMac_GetOSType, &selector))
|
||||
if (!PyArg_ParseTuple(args, "O&", PyMac_GetOSType, &selector))
|
||||
return NULL;
|
||||
iErr = Gestalt ( selector, &response );
|
||||
if (iErr != 0)
|
||||
|
@ -44,7 +44,7 @@ gestalt_gestalt(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static struct PyMethodDef gestalt_methods[] = {
|
||||
{"gestalt", gestalt_gestalt},
|
||||
{"gestalt", gestalt_gestalt, METH_VARARGS},
|
||||
{NULL, NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue