summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-02-18 08:50:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-02-18 08:50:38 (GMT)
commitb8d661bd5e69f6717fe2b636d6963d03aba5189d (patch)
tree426915d0f6bb7a1e66053f53eaf10469fe76e82f /Modules
parent0c2552c0735b53d367a58d93957c440f309190ae (diff)
downloadcpython-b8d661bd5e69f6717fe2b636d6963d03aba5189d.zip
cpython-b8d661bd5e69f6717fe2b636d6963d03aba5189d.tar.gz
cpython-b8d661bd5e69f6717fe2b636d6963d03aba5189d.tar.bz2
Revert r53672, just fix signature of time_isoformat instead.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/datetimemodule.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index cf8a68b..9ae7732 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -3166,8 +3166,11 @@ time_str(PyDateTime_Time *self)
return PyObject_CallMethod((PyObject *)self, "isoformat", "()");
}
+/* Even though this silently ignores all arguments, it cannot
+ be fixed to reject them in release25-maint */
static PyObject *
-time_isoformat(PyDateTime_Time *self, PyObject *unused)
+time_isoformat(PyDateTime_Time *self, PyObject *unused_args,
+ PyObject *unused_keywords)
{
char buf[100];
PyObject *result;
@@ -3411,7 +3414,7 @@ time_reduce(PyDateTime_Time *self, PyObject *arg)
static PyMethodDef time_methods[] = {
- {"isoformat", (PyCFunction)time_isoformat, METH_NOARGS,
+ {"isoformat", (PyCFunction)time_isoformat, METH_KEYWORDS,
PyDoc_STR("Return string in ISO 8601 format, HH:MM:SS[.mmmmmm]"
"[+HH:MM].")},