Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.

This commit is contained in:
Neal Norwitz 2002-03-25 20:46:46 +00:00
parent 57f8e06e4f
commit 3a6f97850b
9 changed files with 65 additions and 122 deletions

View file

@ -118,6 +118,9 @@
#include "abstract.h"
#define PyArg_GetInt(v, a) PyArg_Parse((v), "i", (a))
/* PyArg_NoArgs should not be necessary.
Set ml_flags in the PyMethodDef to METH_NOARGS. */
#define PyArg_NoArgs(v) PyArg_Parse(v, "")
/* Convert a possibly signed character to a nonnegative int */