Patch #477750: Use METH_ constants in Modules.
diff --git a/Modules/dlmodule.c b/Modules/dlmodule.c
index 46ae926..d2364d4 100644
--- a/Modules/dlmodule.c
+++ b/Modules/dlmodule.c
@@ -120,9 +120,9 @@
}
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 @@
}
static PyMethodDef dl_methods[] = {
- {"open", dl_open},
+ {"open", dl_open, METH_OLDARGS},
{NULL, NULL} /* sentinel */
};