Kaydet (Commit) ee1813de authored tarafından Guido van Rossum's avatar Guido van Rossum

fix stupid bug in strip and split

üst 26a9f746
......@@ -55,7 +55,7 @@ strop_split(self, args)
i = i+1;
}
j = i;
while (i < len && isspace(Py_CHARMASK(s[i]))) {
while (i < len && !isspace(Py_CHARMASK(s[i]))) {
i = i+1;
}
if (j < i) {
......@@ -278,7 +278,7 @@ strop_strip(self, args)
j = len;
do {
j--;
} while (j >= i && isspace(Py_CHARMASK(s[i])));
} while (j >= i && isspace(Py_CHARMASK(s[j])));
j++;
if (i == 0 && j == len) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment