@@ -106,7 +106,7 @@ sys_exc_info(self, args)
106106 PyObject * args ;
107107{
108108 PyThreadState * tstate ;
109- if (!PyArg_Parse (args , "" ))
109+ if (!PyArg_ParseTuple (args , ":exc_info " ))
110110 return NULL ;
111111 tstate = PyThreadState_Get ();
112112 return Py_BuildValue (
@@ -214,7 +214,7 @@ sys_mdebug(self, args)
214214 PyObject * args ;
215215{
216216 int flag ;
217- if (!PyArg_Parse (args , "i" , & flag ))
217+ if (!PyArg_ParseTuple (args , "i:mdebug " , & flag ))
218218 return NULL ;
219219 mallopt (M_DEBUG , flag );
220220 Py_INCREF (Py_None );
@@ -228,7 +228,7 @@ sys_getrefcount(self, args)
228228 PyObject * args ;
229229{
230230 PyObject * arg ;
231- if (!PyArg_Parse (args , "O" , & arg ))
231+ if (!PyArg_ParseTuple (args , "O:getrefcount " , & arg ))
232232 return NULL ;
233233 return PyInt_FromLong ((long ) arg -> ob_refcnt );
234234}
@@ -246,7 +246,7 @@ sys_getcounts(self, args)
246246{
247247 extern PyObject * get_counts Py_PROTO ((void ));
248248
249- if (!PyArg_Parse (args , "" ))
249+ if (!PyArg_ParseTuple (args , ":getcounts " ))
250250 return NULL ;
251251 return get_counts ();
252252}
@@ -264,20 +264,20 @@ extern PyObject *_Py_GetDXProfile Py_PROTO((PyObject *, PyObject *));
264264
265265static PyMethodDef sys_methods [] = {
266266 /* Might as well keep this in alphabetic order */
267- {"exc_info" , sys_exc_info , 0 , exc_info_doc },
267+ {"exc_info" , sys_exc_info , 1 , exc_info_doc },
268268 {"exit" , sys_exit , 0 , exit_doc },
269269#ifdef COUNT_ALLOCS
270- {"getcounts" , sys_getcounts , 0 },
270+ {"getcounts" , sys_getcounts , 1 },
271271#endif
272272#ifdef DYNAMIC_EXECUTION_PROFILE
273273 {"getdxp" , _Py_GetDXProfile , 1 },
274274#endif
275275#ifdef Py_TRACE_REFS
276276 {"getobjects" , _Py_GetObjects , 1 },
277277#endif
278- {"getrefcount" , sys_getrefcount , 0 , getrefcount_doc },
278+ {"getrefcount" , sys_getrefcount , 1 , getrefcount_doc },
279279#ifdef USE_MALLOPT
280- {"mdebug" , sys_mdebug , 0 },
280+ {"mdebug" , sys_mdebug , 1 },
281281#endif
282282 {"setcheckinterval" , sys_setcheckinterval , 1 , setcheckinterval_doc },
283283 {"setprofile" , sys_setprofile , 0 , setprofile_doc },
0 commit comments