diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-05-03 21:07:13 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-05-03 21:07:13 (GMT) |
commit | aa77d26009456a447dc95f748533d64cb6a1b50a (patch) | |
tree | 7213665b9bc9dec0b8c51afbc877ae1eef6bdeb1 /Objects/complexobject.c | |
parent | fb85dfc685cef770b8922f91764ac64949fae571 (diff) | |
download | cpython-aa77d26009456a447dc95f748533d64cb6a1b50a.zip cpython-aa77d26009456a447dc95f748533d64cb6a1b50a.tar.gz cpython-aa77d26009456a447dc95f748533d64cb6a1b50a.tar.bz2 |
Merged revisions 72253 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72253 | mark.dickinson | 2009-05-03 21:59:48 +0100 (Sun, 03 May 2009) | 2 lines
Eliminate some locale-dependent calls to isspace and tolower.
........
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r-- | Objects/complexobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 4dd6151..8fdbd37 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -767,13 +767,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++; } @@ -856,7 +856,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 @@ -864,7 +864,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++; } |