diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2003-12-23 09:10:16 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2003-12-23 09:10:16 (GMT) |
commit | 7fc4cf57b8f75784e269e64403a1ea2b08bd512b (patch) | |
tree | 9ca8cc22a68905af3d194fcf0e6659fdb2be0c99 /Objects | |
parent | 0490fe96d882072aca640ef5c6f42ed80a789f0d (diff) | |
download | cpython-7fc4cf57b8f75784e269e64403a1ea2b08bd512b.zip cpython-7fc4cf57b8f75784e269e64403a1ea2b08bd512b.tar.gz cpython-7fc4cf57b8f75784e269e64403a1ea2b08bd512b.tar.bz2 |
Fix unicode.rsplit()'s bug that ignores separater on the end of string when
using specialized splitter for 1 char sep.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ PyObject *rsplit_char(PyUnicodeObject *self, } else i--; } - if (j >= 0) { + if (j >= -1) { SPLIT_INSERT(self->str, 0, j + 1); } return list; |