From: Benjamin Peterson Date: Sun, 15 Mar 2009 14:38:55 +0000 (+0000) Subject: fix tuple.index() error message #5495 X-Git-Tag: v2.7a1~1861 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1706c644ae437071f3a207f0fe59f9ae4e6404f4;p=thirdparty%2FPython%2Fcpython.git fix tuple.index() error message #5495 --- diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index d7cb25aaf69e..74d392a4e52a 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -483,7 +483,7 @@ tupleindex(PyTupleObject *self, PyObject *args) else if (cmp < 0) return NULL; } - PyErr_SetString(PyExc_ValueError, "tuple.index(x): x not in list"); + PyErr_SetString(PyExc_ValueError, "tuple.index(x): x not in tuple"); return NULL; }