diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-02-09 23:16:51 +0100 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-02-09 23:16:51 +0100 |
commit | 8ad5b07ccb81f51551ac087a5409ebc85c0d16a7 (patch) | |
tree | 0496567aa3d6d37dc456da69e9b32f7da561f102 /Modules/_struct.c | |
parent | 151699a202e6213c1f02b37605a033975ae52307 (diff) | |
parent | c73c561181c3ea3bf15c908a827878e1450a5ac6 (diff) | |
download | cpython-git-8ad5b07ccb81f51551ac087a5409ebc85c0d16a7.tar.gz |
Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r-- | Modules/_struct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c index 6e8759bebb..208559cf1c 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -1270,7 +1270,7 @@ prepare_s(PyStructObject *self) size = 0; len = 0; while ((c = *s++) != '\0') { - if (isspace(Py_CHARMASK(c))) + if (Py_ISSPACE(Py_CHARMASK(c))) continue; if ('0' <= c && c <= '9') { num = c - '0'; @@ -1335,7 +1335,7 @@ prepare_s(PyStructObject *self) s = fmt; size = 0; while ((c = *s++) != '\0') { - if (isspace(Py_CHARMASK(c))) + if (Py_ISSPACE(Py_CHARMASK(c))) continue; if ('0' <= c && c <= '9') { num = c - '0'; |