mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
Revert "gh-96844: Improve error message of list.remove (gh-106455)" (#116956)
This reverts commit 217f47d6e5.
This commit is contained in:
parent
2a4cbf17af
commit
f6cdc6b4a1
3 changed files with 5 additions and 5 deletions
|
|
@ -3194,7 +3194,7 @@ list_remove_impl(PyListObject *self, PyObject *value)
|
|||
else if (cmp < 0)
|
||||
return NULL;
|
||||
}
|
||||
PyErr_Format(PyExc_ValueError, "%R is not in list", value);
|
||||
PyErr_SetString(PyExc_ValueError, "list.remove(x): x not in list");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue