summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-03-06 12:12:02 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-03-06 12:12:02 (GMT)
commit2b6727bd8a714d334d34e6a9fabc1d0f651633a7 (patch)
tree7069489f11699b9626602340b84ec0db48cced03 /Modules
parenta30c1001ef4fe6bceda269c4e7d7b06e929ccec0 (diff)
downloadcpython-2b6727bd8a714d334d34e6a9fabc1d0f651633a7.zip
cpython-2b6727bd8a714d334d34e6a9fabc1d0f651633a7.tar.gz
cpython-2b6727bd8a714d334d34e6a9fabc1d0f651633a7.tar.bz2
Use Py_CHARMASK for ctype macros. Fixes bug #232787.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/timemodule.c2
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,