[Python-checkins] python/dist/src/Objects unicodeobject.c, 2.207, 2.208

perky at users.sourceforge.net perky at users.sourceforge.net
Tue Dec 23 04:10:19 EST 2003


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv26828/Objects

Modified Files:
	unicodeobject.c 
Log Message:
Fix unicode.rsplit()'s bug that ignores separater on the end of string when
using specialized splitter for 1 char sep.


Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.207
retrieving revision 2.208
diff -C2 -d -r2.207 -r2.208
*** unicodeobject.c	22 Dec 2003 01:33:08 -0000	2.207
--- unicodeobject.c	23 Dec 2003 09:10:16 -0000	2.208
***************
*** 4295,4299 ****
  	    i--;
      }
!     if (j >= 0) {
  	SPLIT_INSERT(self->str, 0, j + 1);
      }
--- 4295,4299 ----
  	    i--;
      }
!     if (j >= -1) {
  	SPLIT_INSERT(self->str, 0, j + 1);
      }





More information about the Python-checkins mailing list