Convert more modules to METH_VARARGS.
diff --git a/PC/_subprocess.c b/PC/_subprocess.c
index 522a79e..2e724c6 100644
--- a/PC/_subprocess.c
+++ b/PC/_subprocess.c
@@ -108,8 +108,8 @@
}
static PyMethodDef sp_handle_methods[] = {
- {"Detach", (PyCFunction) sp_handle_detach, 1},
- {"Close", (PyCFunction) sp_handle_close, 1},
+ {"Detach", (PyCFunction) sp_handle_detach, METH_VARARGS},
+ {"Close", (PyCFunction) sp_handle_close, METH_VARARGS},
{NULL, NULL}
};
diff --git a/PC/example_nt/example.c b/PC/example_nt/example.c
index 46cb429..953fb82 100644
--- a/PC/example_nt/example.c
+++ b/PC/example_nt/example.c
@@ -9,7 +9,7 @@
}
static PyMethodDef example_methods[] = {
- {"foo", ex_foo, 1, "foo() doc string"},
+ {"foo", ex_foo, METH_VARARGS, "foo() doc string"},
{NULL, NULL}
};