[Python-checkins] CVS: python/dist/src/Modules gcmodule.c,2.4,2.5
Fred L. Drake
python-dev@python.org
Tue, 11 Jul 2000 21:42:26 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv25427/Modules
Modified Files:
gcmodule.c
Log Message:
Always use the :funcname part of the format specifier for PyArg_ParseTuple()
so we get better error messages.
Index: gcmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/gcmodule.c,v
retrieving revision 2.4
retrieving revision 2.5
diff -C2 -r2.4 -r2.5
*** gcmodule.c 2000/07/11 14:37:41 2.4
--- gcmodule.c 2000/07/12 04:42:23 2.5
***************
*** 532,536 ****
long n;
! if(!PyArg_ParseTuple(args, "")) /* check no args */
return NULL;
--- 532,536 ----
long n;
! if (!PyArg_ParseTuple(args, ":collect")) /* check no args */
return NULL;
***************
*** 562,566 ****
Py_set_debug(PyObject *self, PyObject *args)
{
! if (!PyArg_ParseTuple(args, "l", &debug))
return NULL;
--- 562,566 ----
Py_set_debug(PyObject *self, PyObject *args)
{
! if (!PyArg_ParseTuple(args, "l:get_debug", &debug))
return NULL;
***************
*** 578,582 ****
Py_get_debug(PyObject *self, PyObject *args)
{
! if(!PyArg_ParseTuple(args, "")) /* no args */
return NULL;
--- 578,582 ----
Py_get_debug(PyObject *self, PyObject *args)
{
! if (!PyArg_ParseTuple(args, ":get_debug")) /* no args */
return NULL;
***************
*** 594,598 ****
Py_set_thresh(PyObject *self, PyObject *args)
{
! if (!PyArg_ParseTuple(args, "i|ii", &threshold0,
&threshold1, &threshold2))
return NULL;
--- 594,598 ----
Py_set_thresh(PyObject *self, PyObject *args)
{
! if (!PyArg_ParseTuple(args, "i|ii:set_threshold", &threshold0,
&threshold1, &threshold2))
return NULL;
***************
*** 611,615 ****
Py_get_thresh(PyObject *self, PyObject *args)
{
! if(!PyArg_ParseTuple(args, "")) /* no args */
return NULL;
--- 611,615 ----
Py_get_thresh(PyObject *self, PyObject *args)
{
! if (!PyArg_ParseTuple(args, ":get_threshold")) /* no args */
return NULL;