Mercurial > cpython-lru_cache-weakref
diff Objects/complexobject.c @ 53714:e2b553d7205f
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.
........
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sun, 03 May 2009 21:07:13 +0000 |
| parents | 13a82a710f19 |
| children | c6376d3fa968 |
line wrap: on
line diff
--- a/Objects/complexobject.c Sun May 03 20:40:46 2009 +0000 +++ b/Objects/complexobject.c Sun May 03 21:07:13 2009 +0000 @@ -767,13 +767,13 @@ /* 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 @@ } /* 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 @@ if (*s != ')') goto parse_error; s++; - while (*s && isspace(Py_CHARMASK(*s))) + while (Py_ISSPACE(*s)) s++; }
