fix tuple.index() error message #5495

This commit is contained in:
Benjamin Peterson 2009-03-15 14:38:55 +00:00
parent 8eba5ed0d9
commit 1706c644ae
1 changed files with 1 additions and 1 deletions

View 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;
}