diff options
author | Raymond Hettinger <python@rcn.com> | 2003-01-15 05:32:57 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-01-15 05:32:57 +0000 |
commit | eee446b7eb21dc6af5fda5aefa8c58dfebeee60f (patch) | |
tree | cf2d66ee2a531bf6fb160d60517c9960c1d05473 /Objects/stringobject.c | |
parent | 9ed819d6e2bf790f1da31868b2f7c3c089f22dc1 (diff) | |
download | cpython-eee446b7eb21dc6af5fda5aefa8c58dfebeee60f.tar.gz |
SF patch #664192 bug #661913: inconsistent error messages between string
and unicode
Patch by Christopher Blunck.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 1a4a7547de..f18edb00c4 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); |