From: Guido van Rossum Date: Wed, 29 Aug 2007 17:28:42 +0000 (+0000) Subject: Use the correct type for variables corresponding to 'u' formats. X-Git-Tag: v3.0a1~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8a17aafca9c38aa5b74bc9066b6c7e867f25567;p=thirdparty%2FPython%2Fcpython.git Use the correct type for variables corresponding to 'u' formats. --- diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 70118d288906..046354cd5fc6 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;