diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:34:44 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:34:44 (GMT) |
commit | a1abb728bc0d3898539ea89effa7906a50366f1a (patch) | |
tree | 91b7f25e125d8c550fa277e32023a2a39a249619 /Modules/pwdmodule.c | |
parent | 767bf49b6b3d8825cfa5c52c2e8019bd23429fcd (diff) | |
download | cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.zip cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.tar.gz cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.tar.bz2 |
Use METH_OLDARGS instead of numeric constant 0 in method def. tables
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r-- | Modules/pwdmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index ada9e6d..1efe81a 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -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 */ }; |