From 1706c644ae437071f3a207f0fe59f9ae4e6404f4 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 15 Mar 2009 14:38:55 +0000 Subject: fix tuple.index() error message #5495 --- Objects/tupleobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index d7cb25a..74d392a 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; } -- cgit v0.12