summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-30 09:51:48 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-30 09:51:48 (GMT)
commit7b876158dc8a69e030d09e6cf78a1e8b6662f0c3 (patch)
tree4609dc87147ebfeb9d78d3ddf2be20f681109703 /Objects
parentd4cb56d4e88c7e001bbaba2c80953db47632f199 (diff)
downloadcpython-7b876158dc8a69e030d09e6cf78a1e8b6662f0c3.zip
cpython-7b876158dc8a69e030d09e6cf78a1e8b6662f0c3.tar.gz
cpython-7b876158dc8a69e030d09e6cf78a1e8b6662f0c3.tar.bz2
Fixed #1969: split and rsplit in bytearray are inconsistent
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytesobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 45dcb91..e0e3cd0 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -2388,16 +2388,16 @@ rsplit_whitespace(const char *s, Py_ssize_t len, Py_ssize_t maxcount)
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;
}