From e8a17aafca9c38aa5b74bc9066b6c7e867f25567 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 29 Aug 2007 17:28:42 +0000 Subject: [PATCH] Use the correct type for variables corresponding to 'u' formats. --- Modules/datetimemodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 70118d2889..046354cd5f 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -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; -- 2.50.0