Use METH_OLDARGS instead of numeric constant 0 in method def. tables
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 @@
#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 */
};