summaryrefslogtreecommitdiffstats
path: root/Modules/resource.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
commit43b936d08c51726205123ae1af5c5f8b5d3b6fcb (patch)
tree1c3e3fd7ec72d71f92f1f0480291c5efc7f19eaf /Modules/resource.c
parentc0e1671c71dfcf25c8584b06a2e9584a8806a325 (diff)
downloadcpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.zip
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.gz
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.bz2
Patch #477750: Use METH_ constants in Modules.
Diffstat (limited to 'Modules/resource.c')
-rw-r--r--Modules/resource.c8
1 files changed, 4 insertions, 4 deletions
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 @@ resource_getpagesize(PyObject *self, PyObject *args)
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 */
};