diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-03-15 14:38:55 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-03-15 14:38:55 (GMT) |
commit | 1706c644ae437071f3a207f0fe59f9ae4e6404f4 (patch) | |
tree | 26509a881b391c2810ef8c2194eb7786dd356659 /Objects | |
parent | 8eba5ed0d9e1b62b7b1276fcf7b323e39aacd9d5 (diff) | |
download | cpython-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.c | 2 |
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; } |