mirror of https://github.com/python/cpython
fix tuple.index() error message #5495
This commit is contained in:
parent
8eba5ed0d9
commit
1706c644ae
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue