diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-06-18 18:44:37 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-06-18 18:44:37 (GMT) |
commit | f568218e7e6211fa93d390eb327379776962867e (patch) | |
tree | 3c397cb0eb3030ac9bdd5c5d7504eab7d697c2a0 /Modules/datetimemodule.c | |
parent | 49d7a57f33f2ed984f41082d02e1a1834778225d (diff) | |
download | cpython-f568218e7e6211fa93d390eb327379776962867e.zip cpython-f568218e7e6211fa93d390eb327379776962867e.tar.gz cpython-f568218e7e6211fa93d390eb327379776962867e.tar.bz2 |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index ed04520..ddb5a05 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. */ |