mirror of https://github.com/python/cpython
Use the correct type for variables corresponding to 'u' formats.
This commit is contained in:
parent
da3f228740
commit
e8a17aafca
|
@ -3786,7 +3786,7 @@ static PyObject *
|
|||
datetime_strptime(PyObject *cls, PyObject *args)
|
||||
{
|
||||
PyObject *result = NULL, *obj, *module;
|
||||
const char *string, *format;
|
||||
const Py_UNICODE *string, *format;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "uu:strptime", &string, &format))
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue