summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-15 14:38:55 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-03-15 14:38:55 (GMT)
commit1706c644ae437071f3a207f0fe59f9ae4e6404f4 (patch)
tree26509a881b391c2810ef8c2194eb7786dd356659 /Objects
parent8eba5ed0d9e1b62b7b1276fcf7b323e39aacd9d5 (diff)
downloadcpython-1706c644ae437071f3a207f0fe59f9ae4e6404f4.zip
cpython-1706c644ae437071f3a207f0fe59f9ae4e6404f4.tar.gz
cpython-1706c644ae437071f3a207f0fe59f9ae4e6404f4.tar.bz2
fix tuple.index() error message #5495
Diffstat (limited to 'Objects')
-rw-r--r--Objects/tupleobject.c2
1 files changed, 1 insertions, 1 deletions
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;
}