Fix datetime_strptime following svnmerge from trunk; it was

using the wrong format codes ('s' instead of 'u') in
PyObject_CallMethod.
This commit is contained in:
Mark Dickinson 2008-03-16 03:45:34 +00:00
parent 0eb6f69fc3
commit fc689ddc0d
1 changed files with 1 additions and 1 deletions

View File

@ -3842,7 +3842,7 @@ datetime_strptime(PyObject *cls, PyObject *args)
/* _strptime._strptime returns a two-element tuple. The first
element is a time.struct_time object. The second is the
microseconds (which are not defined for time.struct_time). */
obj = PyObject_CallMethod(module, "_strptime", "ss", string, format);
obj = PyObject_CallMethod(module, "_strptime", "uu", string, format);
if (obj != NULL) {
int i, good_timetuple = 1;
long int ia[7];