[Python-3000-checkins] r61411 - python/branches/py3k/Modules/datetimemodule.c
mark.dickinson
python-3000-checkins at python.org
Sun Mar 16 04:45:34 CET 2008
Author: mark.dickinson
Date: Sun Mar 16 04:45:34 2008
New Revision: 61411
Modified:
python/branches/py3k/Modules/datetimemodule.c
Log:
Fix datetime_strptime following svnmerge from trunk; it was
using the wrong format codes ('s' instead of 'u') in
PyObject_CallMethod.
Modified: python/branches/py3k/Modules/datetimemodule.c
==============================================================================
--- python/branches/py3k/Modules/datetimemodule.c (original)
+++ python/branches/py3k/Modules/datetimemodule.c Sun Mar 16 04:45:34 2008
@@ -3842,7 +3842,7 @@
/* _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];
More information about the Python-3000-checkins
mailing list