diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:06:16 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-08-03 02:06:16 (GMT) |
commit | e365fb8d1ff062d619f9476265e48e9ba8ab2bf6 (patch) | |
tree | cb80331534a82abbadb7d45e9f654c3e97b1b3f5 /Modules/timemodule.c | |
parent | 14f515844d3eae2818af3f1da7b32c38d8e73078 (diff) | |
download | cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.zip cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.gz cpython-e365fb8d1ff062d619f9476265e48e9ba8ab2bf6.tar.bz2 |
Use METH_VARARGS instead of numeric constant 1 in method def. tables
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index db8e163..e84a32c 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -498,16 +498,16 @@ static PyMethodDef time_methods[] = { {"sleep", time_sleep, 0, sleep_doc}, {"gmtime", time_gmtime, 0, gmtime_doc}, {"localtime", time_localtime, 0, localtime_doc}, - {"asctime", time_asctime, 1, asctime_doc}, + {"asctime", time_asctime, METH_VARARGS, asctime_doc}, {"ctime", time_ctime, 0, ctime_doc}, #ifdef HAVE_MKTIME - {"mktime", time_mktime, 1, mktime_doc}, + {"mktime", time_mktime, METH_VARARGS, mktime_doc}, #endif #ifdef HAVE_STRFTIME - {"strftime", time_strftime, 1, strftime_doc}, + {"strftime", time_strftime, METH_VARARGS, strftime_doc}, #endif #ifdef HAVE_STRPTIME - {"strptime", time_strptime, 1, strptime_doc}, + {"strptime", time_strptime, METH_VARARGS, strptime_doc}, #endif {NULL, NULL} /* sentinel */ }; |