Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc689dd

Browse files
committed
Fix datetime_strptime following svnmerge from trunk; it was
using the wrong format codes ('s' instead of 'u') in PyObject_CallMethod.
1 parent 0eb6f69 commit fc689dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/datetimemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3842,7 +3842,7 @@ datetime_strptime(PyObject *cls, PyObject *args)
38423842
/* _strptime._strptime returns a two-element tuple. The first
38433843
element is a time.struct_time object. The second is the
38443844
microseconds (which are not defined for time.struct_time). */
3845-
obj = PyObject_CallMethod(module, "_strptime", "ss", string, format);
3845+
obj = PyObject_CallMethod(module, "_strptime", "uu", string, format);
38463846
if (obj != NULL) {
38473847
int i, good_timetuple = 1;
38483848
long int ia[7];

0 commit comments

Comments
 (0)