summaryrefslogtreecommitdiff
path: root/Objects/complexobject.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-05-03 20:59:48 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-05-03 20:59:48 +0000
commit0ea74d3dd1be202b06dd67db151889fa8a53e4cd (patch)
tree8a70cd7c7d1e556e47aa8c686d87fdf955d1c5c7 /Objects/complexobject.c
parentc34f714246034e04499adf3e29104762d76d55ae (diff)
downloadcpython-0ea74d3dd1be202b06dd67db151889fa8a53e4cd.tar.gz
Eliminate some locale-dependent calls to isspace and tolower.
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r--Objects/complexobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index 2ae8056ac6..f0f25415a7 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -950,13 +950,13 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
/* position on first nonblank */
start = s;
- while (*s && isspace(Py_CHARMASK(*s)))
+ while (Py_ISSPACE(*s))
s++;
if (*s == '(') {
/* Skip over possible bracket from repr(). */
got_bracket = 1;
s++;
- while (*s && isspace(Py_CHARMASK(*s)))
+ while (Py_ISSPACE(*s))
s++;
}
@@ -1038,7 +1038,7 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
}
/* trailing whitespace and closing bracket */
- while (*s && isspace(Py_CHARMASK(*s)))
+ while (Py_ISSPACE(*s))
s++;
if (got_bracket) {
/* if there was an opening parenthesis, then the corresponding
@@ -1046,7 +1046,7 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
if (*s != ')')
goto parse_error;
s++;
- while (*s && isspace(Py_CHARMASK(*s)))
+ while (Py_ISSPACE(*s))
s++;
}