summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-01-15 05:32:57 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-01-15 05:32:57 (GMT)
commit5d5e7c0e34a0fe0ebd17419336557a739c403bac (patch)
treeccd02ffffea00b9b8ec3da4fd030bac2d4ab3ad2 /Objects
parenta2e303c32d415c2921672d87268b80d6aa824e21 (diff)
downloadcpython-5d5e7c0e34a0fe0ebd17419336557a739c403bac.zip
cpython-5d5e7c0e34a0fe0ebd17419336557a739c403bac.tar.gz
cpython-5d5e7c0e34a0fe0ebd17419336557a739c403bac.tar.bz2
SF patch #664192 bug #661913: inconsistent error messages between string
and unicode Patch by Christopher Blunck.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 1a4a754..f18edb0 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -1620,7 +1620,7 @@ string_index(PyStringObject *self, PyObject *args)
return NULL;
if (result == -1) {
PyErr_SetString(PyExc_ValueError,
- "substring not found in string.index");
+ "substring not found");
return NULL;
}
return PyInt_FromLong(result);
@@ -1659,7 +1659,7 @@ string_rindex(PyStringObject *self, PyObject *args)
return NULL;
if (result == -1) {
PyErr_SetString(PyExc_ValueError,
- "substring not found in string.rindex");
+ "substring not found");
return NULL;
}
return PyInt_FromLong(result);