]> granicus.if.org Git - python/commitdiff
Use the correct type for variables corresponding to 'u' formats.
authorGuido van Rossum <guido@python.org>
Wed, 29 Aug 2007 17:28:42 +0000 (17:28 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 29 Aug 2007 17:28:42 +0000 (17:28 +0000)
Modules/datetimemodule.c

index 70118d288906be66a1fc9675074b7c5df4cd9d1b..046354cd5fc6baeed8a701b880b21e321a334196 100644 (file)
@@ -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;