diff Objects/unicodeobject.c @ 31252:892116a886e0 legacy-trunk

Fix unicode.rsplit()'s bug that ignores separater on the end of string when using specialized splitter for 1 char sep.
author Hye-Shik Chang <hyeshik@gmail.com>
date Tue, 23 Dec 2003 09:10:16 +0000
parents 353a16033f6a
children b4532c246a3a
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Mon Dec 22 18:10:51 2003 +0000
+++ b/Objects/unicodeobject.c	Tue Dec 23 09:10:16 2003 +0000
@@ -4294,7 +4294,7 @@
 	} else
 	    i--;
     }
-    if (j >= 0) {
+    if (j >= -1) {
 	SPLIT_INSERT(self->str, 0, j + 1);
     }
     return list;