From: Martin v. Löwis Date: Sat, 3 Nov 2001 10:48:43 +0000 (+0000) Subject: Correct argument parsing for alp_getstatus, which is METH_VARARGS. X-Git-Tag: v2.2.1c1~887 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bd292f00477674e1d8595c4b3fe8c632b4ae4ab;p=python Correct argument parsing for alp_getstatus, which is METH_VARARGS. --- diff --git a/Modules/almodule.c b/Modules/almodule.c index 6621b9c024..9e26081cb0 100644 --- a/Modules/almodule.c +++ b/Modules/almodule.c @@ -1203,7 +1203,7 @@ alp_getstatus(alpobject *self, PyObject *args) long length; int i; - if (!PyArg_Parse(args, "O!", &PyList_Type, &list)) + if (!PyArg_ParseTuple(args, "O!", &PyList_Type, &list)) return NULL; length = PyList_Size(list); PVbuffer = PyMem_NEW(long, length);