diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-02-09 22:16:51 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-02-09 22:16:51 (GMT) |
commit | 8ad5b07ccb81f51551ac087a5409ebc85c0d16a7 (patch) | |
tree | 0496567aa3d6d37dc456da69e9b32f7da561f102 /Objects/longobject.c | |
parent | 151699a202e6213c1f02b37605a033975ae52307 (diff) | |
parent | c73c561181c3ea3bf15c908a827878e1450a5ac6 (diff) | |
download | cpython-8ad5b07ccb81f51551ac087a5409ebc85c0d16a7.zip cpython-8ad5b07ccb81f51551ac087a5409ebc85c0d16a7.tar.gz cpython-8ad5b07ccb81f51551ac087a5409ebc85c0d16a7.tar.bz2 |
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 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index bec0a78..cdaea02 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -2008,7 +2008,7 @@ PyLong_FromString(char *str, char **pend, int base) "int() arg 2 must be >= 2 and <= 36"); return NULL; } - while (*str != '\0' && isspace(Py_CHARMASK(*str))) + while (*str != '\0' && Py_ISSPACE(Py_CHARMASK(*str))) str++; if (*str == '+') ++str; @@ -2252,7 +2252,7 @@ digit beyond the first. goto onError; if (sign < 0) Py_SIZE(z) = -(Py_SIZE(z)); - while (*str && isspace(Py_CHARMASK(*str))) + while (*str && Py_ISSPACE(Py_CHARMASK(*str))) str++; if (*str != '\0') goto onError; |