summaryrefslogtreecommitdiffstats
path: root/Python/mystrtoul.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-02-09 22:11:27 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-02-09 22:11:27 (GMT)
commit4de7457009d3dac9c93cc5b471d20a8d5e92ff33 (patch)
tree7dd778385f577557e4fdafb09e55e1b9485f9407 /Python/mystrtoul.c
parentb6ed17344b456f397df800cc553fef94f5b1e58b (diff)
downloadcpython-4de7457009d3dac9c93cc5b471d20a8d5e92ff33.zip
cpython-4de7457009d3dac9c93cc5b471d20a8d5e92ff33.tar.gz
cpython-4de7457009d3dac9c93cc5b471d20a8d5e92ff33.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).
Diffstat (limited to 'Python/mystrtoul.c')
-rw-r--r--Python/mystrtoul.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c
index 52502cb..8a54cbf 100644
--- a/Python/mystrtoul.c
+++ b/Python/mystrtoul.c
@@ -99,7 +99,7 @@ PyOS_strtoul(register char *str, char **ptr, int base)
register int ovlimit; /* required digits to overflow */
/* skip leading white space */
- while (*str && isspace(Py_CHARMASK(*str)))
+ while (*str && Py_ISSPACE(Py_CHARMASK(*str)))
++str;
/* check for leading 0b, 0o or 0x for auto-base or base 16 */
@@ -138,7 +138,7 @@ PyOS_strtoul(register char *str, char **ptr, int base)
/* skip all zeroes... */
while (*str == '0')
++str;
- while (isspace(Py_CHARMASK(*str)))
+ while (Py_ISSPACE(Py_CHARMASK(*str)))
++str;
if (ptr)
*ptr = str;
@@ -266,7 +266,7 @@ PyOS_strtol(char *str, char **ptr, int base)
unsigned long uresult;
char sign;
- while (*str && isspace(Py_CHARMASK(*str)))
+ while (*str && Py_ISSPACE(Py_CHARMASK(*str)))
str++;
sign = *str;