commit | 3a6f97850b2a4071f3015033fa3d68ce6fa576f4 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Mon Mar 25 20:46:46 2002 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Mon Mar 25 20:46:46 2002 +0000 |
tree | 46311b5e874d4c733748e5a20de70336bf282323 | |
parent | 57f8e06e4f797abe4d2cbb41a298c5541f69b7f6 [diff] [blame] |
Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.
diff --git a/Include/Python.h b/Include/Python.h index d1ffc73..d3fce4b 100644 --- a/Include/Python.h +++ b/Include/Python.h
@@ -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 */