Use Py_CHARMASK for ctype macros. Fixes bug #232787.

This commit is contained in:
Martin v. Löwis 2001-03-06 12:12:02 +00:00
parent a30c1001ef
commit 2b6727bd8a
3 changed files with 6 additions and 6 deletions

View file

@ -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,