summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-29 21:58:42 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-29 21:58:42 (GMT)
commitbf92f4657234d724df241fc3060d2c2e94e6bf83 (patch)
tree5dce094b4c555697fc22ab7b0a64a70d35bfe519 /Mac/Modules
parent96a8c3954cbdb186bc567a490dad8987508ce268 (diff)
downloadcpython-bf92f4657234d724df241fc3060d2c2e94e6bf83.zip
cpython-bf92f4657234d724df241fc3060d2c2e94e6bf83.tar.gz
cpython-bf92f4657234d724df241fc3060d2c2e94e6bf83.tar.bz2
Convert more modules to METH_VARARGS.
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/gestaltmodule.c4
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 */
};