Mercurial > cpython-lru_cache-weakref
diff Modules/structmodule.c @ 35455:8a3d7f9f02cc 2.4
SF bug #1072182: bad arg type to isspace in struct module
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Fri, 26 Aug 2005 08:42:13 +0000 |
| parents | 32df1d05cb2d |
| children | 1af7f719ed28 |
line wrap: on
line diff
--- a/Modules/structmodule.c Fri Aug 26 08:33:28 2005 +0000 +++ b/Modules/structmodule.c Fri Aug 26 08:42:13 2005 +0000 @@ -959,7 +959,7 @@ s = fmt; size = 0; while ((c = *s++) != '\0') { - if (isspace((int)c)) + if (isspace(Py_CHARMASK(c))) continue; if ('0' <= c && c <= '9') { num = c - '0'; @@ -1059,7 +1059,7 @@ res = restart = PyString_AsString(result); while ((c = *s++) != '\0') { - if (isspace((int)c)) + if (isspace(Py_CHARMASK(c))) continue; if ('0' <= c && c <= '9') { num = c - '0'; @@ -1191,7 +1191,7 @@ str = start; s = fmt; while ((c = *s++) != '\0') { - if (isspace((int)c)) + if (isspace(Py_CHARMASK(c))) continue; if ('0' <= c && c <= '9') { num = c - '0';
