[Python-checkins] python/dist/src/Objects stringobject.c,2.203,2.204
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
2003年1月14日 21:32:59 -0800
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv3709
Modified Files:
stringobject.c
Log Message:
SF patch #664192 bug #661913: inconsistent error messages between string
and unicode
Patch by Christopher Blunck.
Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.203
retrieving revision 2.204
diff -C2 -d -r2.203 -r2.204
*** stringobject.c 6 Jan 2003 22:42:41 -0000 2.203
--- stringobject.c 15 Jan 2003 05:32:57 -0000 2.204
***************
*** 1621,1625 ****
if (result == -1) {
PyErr_SetString(PyExc_ValueError,
! "substring not found in string.index");
return NULL;
}
--- 1621,1625 ----
if (result == -1) {
PyErr_SetString(PyExc_ValueError,
! "substring not found");
return NULL;
}
***************
*** 1660,1664 ****
if (result == -1) {
PyErr_SetString(PyExc_ValueError,
! "substring not found in string.rindex");
return NULL;
}
--- 1660,1664 ----
if (result == -1) {
PyErr_SetString(PyExc_ValueError,
! "substring not found");
return NULL;
}