diff options
Diffstat (limited to 'Mac/Modules/gestaltmodule.c')
-rw-r--r-- | Mac/Modules/gestaltmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/gestaltmodule.c b/Mac/Modules/gestaltmodule.c index 6d8673f..ddfa94a 100644 --- a/Mac/Modules/gestaltmodule.c +++ b/Mac/Modules/gestaltmodule.c @@ -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 */ }; |