]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix tuple.index() error message #5495
authorBenjamin Peterson <benjamin@python.org>
Sun, 15 Mar 2009 14:38:55 +0000 (14:38 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 15 Mar 2009 14:38:55 +0000 (14:38 +0000)
Objects/tupleobject.c

index d7cb25aaf69eb94af01b27e230dbd51b0a0f67b6..74d392a4e52aeeb534cafe304043c75ce02bbb0e 100644 (file)
@@ -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;
 }