mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Use METH_OLDARGS instead of numeric constant 0 in method def. tables
This commit is contained in:
parent
767bf49b6b
commit
a1abb728bc
9 changed files with 78 additions and 55 deletions
|
@ -128,10 +128,10 @@ pwd_getpwall(PyObject *self, PyObject *args)
|
|||
#endif
|
||||
|
||||
static PyMethodDef pwd_methods[] = {
|
||||
{"getpwuid", pwd_getpwuid, 0, pwd_getpwuid__doc__},
|
||||
{"getpwnam", pwd_getpwnam, 0, pwd_getpwnam__doc__},
|
||||
{"getpwuid", pwd_getpwuid, METH_OLDARGS, pwd_getpwuid__doc__},
|
||||
{"getpwnam", pwd_getpwnam, METH_OLDARGS, pwd_getpwnam__doc__},
|
||||
#ifdef HAVE_GETPWENT
|
||||
{"getpwall", pwd_getpwall, 0, pwd_getpwall__doc__},
|
||||
{"getpwall", pwd_getpwall, METH_OLDARGS, pwd_getpwall__doc__},
|
||||
#endif
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue