Patch #477750: Use METH_ constants in Modules.
diff --git a/Modules/resource.c b/Modules/resource.c
index 45474be..1924104 100644
--- a/Modules/resource.c
+++ b/Modules/resource.c
@@ -147,10 +147,10 @@
static struct PyMethodDef
resource_methods[] = {
- {"getrusage", resource_getrusage, 1},
- {"getrlimit", resource_getrlimit, 1},
- {"setrlimit", resource_setrlimit, 1},
- {"getpagesize", resource_getpagesize, 1},
+ {"getrusage", resource_getrusage, METH_VARARGS},
+ {"getrlimit", resource_getrlimit, METH_VARARGS},
+ {"setrlimit", resource_setrlimit, METH_VARARGS},
+ {"getpagesize", resource_getpagesize, METH_VARARGS},
{NULL, NULL} /* sentinel */
};