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/timemodule.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/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index e84a32c..fa40762 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -491,15 +491,15 @@ Convert a time tuple in local time to seconds since the Epoch."; #endif /* HAVE_MKTIME */ static PyMethodDef time_methods[] = { - {"time", time_time, 0, time_doc}, + {"time", time_time, METH_OLDARGS, time_doc}, #ifdef HAVE_CLOCK - {"clock", time_clock, 0, clock_doc}, + {"clock", time_clock, METH_OLDARGS, clock_doc}, #endif - {"sleep", time_sleep, 0, sleep_doc}, - {"gmtime", time_gmtime, 0, gmtime_doc}, - {"localtime", time_localtime, 0, localtime_doc}, + {"sleep", time_sleep, METH_OLDARGS, sleep_doc}, + {"gmtime", time_gmtime, METH_OLDARGS, gmtime_doc}, + {"localtime", time_localtime, METH_OLDARGS, localtime_doc}, {"asctime", time_asctime, METH_VARARGS, asctime_doc}, - {"ctime", time_ctime, 0, ctime_doc}, + {"ctime", time_ctime, METH_OLDARGS, ctime_doc}, #ifdef HAVE_MKTIME {"mktime", time_mktime, METH_VARARGS, mktime_doc}, #endif |