diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:34:44 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:34:44 (GMT) |
commit | a1abb728bc0d3898539ea89effa7906a50366f1a (patch) | |
tree | 91b7f25e125d8c550fa277e32023a2a39a249619 /Modules/signalmodule.c | |
parent | 767bf49b6b3d8825cfa5c52c2e8019bd23429fcd (diff) | |
download | cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.zip cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.tar.gz cpython-a1abb728bc0d3898539ea89effa7906a50366f1a.tar.bz2 |
Use METH_OLDARGS instead of numeric constant 0 in method def. tables
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r-- | Modules/signalmodule.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 4829dbf..4b9876f 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -280,15 +280,15 @@ anything else -- the callable Python object used as a handler\n\ /* List of functions defined in the module */ static PyMethodDef signal_methods[] = { #ifdef HAVE_ALARM - {"alarm", signal_alarm, 0, alarm_doc}, + {"alarm", signal_alarm, METH_OLDARGS, alarm_doc}, #endif - {"signal", signal_signal, 0, signal_doc}, - {"getsignal", signal_getsignal, 0, getsignal_doc}, + {"signal", signal_signal, METH_OLDARGS, signal_doc}, + {"getsignal", signal_getsignal, METH_OLDARGS, getsignal_doc}, #ifdef HAVE_PAUSE - {"pause", signal_pause, 0, pause_doc}, + {"pause", signal_pause, METH_OLDARGS, pause_doc}, #endif - {"default_int_handler", signal_default_int_handler, 0, - default_int_handler_doc}, + {"default_int_handler", signal_default_int_handler, + METH_OLDARGS, default_int_handler_doc}, {NULL, NULL} /* sentinel */ }; |