Mercurial > cpython-lru_cache-weakref
diff Objects/bytesobject.c @ 45050:e9764a695809
Fixed #1969: split and rsplit in bytearray are inconsistent
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 30 Jan 2008 09:51:48 +0000 |
| parents | 86a2679dca46 |
| children | da5597a5c195 |
line wrap: on
line diff
--- a/Objects/bytesobject.c Wed Jan 30 02:55:10 2008 +0000 +++ b/Objects/bytesobject.c Wed Jan 30 09:51:48 2008 +0000 @@ -2388,16 +2388,16 @@ for (i = j = len - 1; i >= 0; ) { /* find a token */ - while (i >= 0 && Py_UNICODE_ISSPACE(s[i])) + while (i >= 0 && ISSPACE(s[i])) i--; j = i; - while (i >= 0 && !Py_UNICODE_ISSPACE(s[i])) + while (i >= 0 && !ISSPACE(s[i])) i--; if (j > i) { if (maxcount-- <= 0) break; SPLIT_ADD(s, i + 1, j + 1); - while (i >= 0 && Py_UNICODE_ISSPACE(s[i])) + while (i >= 0 && ISSPACE(s[i])) i--; j = i; }
