Mercurial > cpython-lru_cache-weakref
diff Objects/tupleobject.c @ 52173:442bdfe93b29 legacy-trunk
fix tuple.index() error message #5495
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 15 Mar 2009 14:38:55 +0000 |
| parents | f0e0c3536e22 |
| children | 0e498a9fde3c |
line wrap: on
line diff
--- a/Objects/tupleobject.c Sun Mar 15 03:24:46 2009 +0000 +++ b/Objects/tupleobject.c Sun Mar 15 14:38:55 2009 +0000 @@ -483,7 +483,7 @@ 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; }
