commit | 7fc4cf57b8f75784e269e64403a1ea2b08bd512b | [log] [tgz] |
---|---|---|
author | Hye-Shik Chang <hyeshik@gmail.com> | Tue Dec 23 09:10:16 2003 +0000 |
committer | Hye-Shik Chang <hyeshik@gmail.com> | Tue Dec 23 09:10:16 2003 +0000 |
tree | 9ca8cc22a68905af3d194fcf0e6659fdb2be0c99 | |
parent | 0490fe96d882072aca640ef5c6f42ed80a789f0d [diff] [blame] |
Fix unicode.rsplit()'s bug that ignores separater on the end of string when using specialized splitter for 1 char sep.
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index b3c4a01..636dfcc 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -4294,7 +4294,7 @@ } else i--; } - if (j >= 0) { + if (j >= -1) { SPLIT_INSERT(self->str, 0, j + 1); } return list;