summaryrefslogtreecommitdiff
path: root/Modules/datetimemodule.c
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-06-18 18:44:37 +0000
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-06-18 18:44:37 +0000
commitf568218e7e6211fa93d390eb327379776962867e (patch)
tree3c397cb0eb3030ac9bdd5c5d7504eab7d697c2a0 /Modules/datetimemodule.c
parent49d7a57f33f2ed984f41082d02e1a1834778225d (diff)
downloadcpython-git-f568218e7e6211fa93d390eb327379776962867e.tar.gz
Issue #6641: Original commit for this issue, r82053, introduced a
regression making datetime subclass' strptime return datetime rather than subclass instances. Fixed this bug and a few typos.
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r--Modules/datetimemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index ed045205fe..ddb5a054cf 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -4377,8 +4377,8 @@ datetime_strptime(PyObject *cls, PyObject *args)
if(module == NULL)
return NULL;
}
- return PyObject_CallMethod(module, "_strptime_datetime", "uu",
- string, format);
+ return PyObject_CallMethod(module, "_strptime_datetime", "Ouu",
+ cls, string, format);
}
/* Return new datetime from date/datetime and time arguments. */