diff options
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index c4a066f..90886f2 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -397,7 +397,7 @@ time_strptime(PyObject *self, PyObject *args) PyErr_SetString(PyExc_ValueError, "format mismatch"); return NULL; } - while (*s && isspace(*s)) + while (*s && isspace(Py_CHARMASK(*s))) s++; if (*s) { PyErr_Format(PyExc_ValueError, |