mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Use Py_CHARMASK for ctype macros. Fixes bug #232787.
This commit is contained in:
parent
a30c1001ef
commit
2b6727bd8a
3 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue