diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-03-25 20:46:46 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-03-25 20:46:46 (GMT) |
commit | 3a6f97850b2a4071f3015033fa3d68ce6fa576f4 (patch) | |
tree | 46311b5e874d4c733748e5a20de70336bf282323 /Modules/signalmodule.c | |
parent | 57f8e06e4f797abe4d2cbb41a298c5541f69b7f6 (diff) | |
download | cpython-3a6f97850b2a4071f3015033fa3d68ce6fa576f4.zip cpython-3a6f97850b2a4071f3015033fa3d68ce6fa576f4.tar.gz cpython-3a6f97850b2a4071f3015033fa3d68ce6fa576f4.tar.bz2 |
Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r-- | Modules/signalmodule.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index b27c4b7..e4298c6 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -163,11 +163,8 @@ Arrange for SIGALRM to arrive after the given number of seconds."; #ifdef HAVE_PAUSE static PyObject * -signal_pause(PyObject *self, PyObject *args) +signal_pause(PyObject *self) { - if (!PyArg_NoArgs(args)) - return NULL; - Py_BEGIN_ALLOW_THREADS (void)pause(); Py_END_ALLOW_THREADS @@ -282,7 +279,7 @@ static PyMethodDef signal_methods[] = { {"signal", signal_signal, METH_OLDARGS, signal_doc}, {"getsignal", signal_getsignal, METH_OLDARGS, getsignal_doc}, #ifdef HAVE_PAUSE - {"pause", signal_pause, METH_OLDARGS, pause_doc}, + {"pause", signal_pause, METH_NOARGS, pause_doc}, #endif {"default_int_handler", signal_default_int_handler, METH_OLDARGS, default_int_handler_doc}, |