summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_struct.c4
-rw-r--r--Modules/binascii.c2
-rw-r--r--Modules/posixmodule.c2
-rw-r--r--Modules/socketmodule.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index 0cd0512..2848614 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -1271,7 +1271,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';
@@ -1336,7 +1336,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';
diff --git a/Modules/binascii.c b/Modules/binascii.c
index ad5e1b1..340ec9c 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -1135,7 +1135,7 @@ This function is also available as \"hexlify()\".");
static int
to_int(int c)
{
- if (isdigit(c))
+ if (Py_ISDIGIT(c))
return c - '0';
else {
if (Py_ISUPPER(c))
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 40645ea..f2bbd9d 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1172,7 +1172,7 @@ os2_formatmsg(char *msgbuf, int msglen, char *reason)
if (strlen(msgbuf) > 0) { /* If Non-Empty Msg, Trim CRLF */
char *lastc = &msgbuf[ strlen(msgbuf)-1 ];
- while (lastc > msgbuf && isspace(Py_CHARMASK(*lastc)))
+ while (lastc > msgbuf && Py_ISSPACE(Py_CHARMASK(*lastc)))
*lastc-- = '\0'; /* Trim Trailing Whitespace (CRLF) */
}
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index d7aef8f..4198207 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -555,7 +555,7 @@ set_error(void)
/* If non-empty msg, trim CRLF */
char *lastc = &outbuf[ strlen(outbuf)-1 ];
while (lastc > outbuf &&
- isspace(Py_CHARMASK(*lastc))) {
+ Py_ISSPACE(Py_CHARMASK(*lastc))) {
/* Trim trailing whitespace (CRLF) */
*lastc-- = '\0';
}