summaryrefslogtreecommitdiff
path: root/Modules/dlmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 +0000
commit3e2cbbf37cdd404dbf7e3ce19d4e5e4753f89dff (patch)
treef8c9f2c92696aee57dbc5087aa69ab04aae43829 /Modules/dlmodule.c
parentc992c3daac4ff2f91af55a4f8e38509d1e5c8200 (diff)
downloadcpython-3e2cbbf37cdd404dbf7e3ce19d4e5e4753f89dff.tar.gz
Patch #477750: Use METH_ constants in Modules.
Diffstat (limited to 'Modules/dlmodule.c')
-rw-r--r--Modules/dlmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/dlmodule.c b/Modules/dlmodule.c
index 46ae926a3a..d2364d4fbe 100644
--- a/Modules/dlmodule.c
+++ b/Modules/dlmodule.c
@@ -120,9 +120,9 @@ dl_call(dlobject *xp, PyObject *args)
}
static PyMethodDef dlobject_methods[] = {
- {"call", (PyCFunction)dl_call, 1 /* varargs */},
- {"sym", (PyCFunction)dl_sym},
- {"close", (PyCFunction)dl_close},
+ {"call", (PyCFunction)dl_call, METH_VARARGS},
+ {"sym", (PyCFunction)dl_sym, METH_OLDARGS},
+ {"close", (PyCFunction)dl_close, METH_OLDARGS},
{NULL, NULL} /* Sentinel */
};
@@ -187,7 +187,7 @@ dl_open(PyObject *self, PyObject *args)
}
static PyMethodDef dl_methods[] = {
- {"open", dl_open},
+ {"open", dl_open, METH_OLDARGS},
{NULL, NULL} /* sentinel */
};