mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-122431: Correct the non-negative error message in readline.append_history_file (GH-143075)
"positive" -> "non-negative", since zero is included.
This commit is contained in:
parent
5b5ee3c4bf
commit
a273bc99d2
2 changed files with 2 additions and 1 deletions
|
|
@ -0,0 +1 @@
|
|||
Corrected the error message in :func:`readline.append_history_file` to state that ``nelements`` must be non-negative instead of positive.
|
||||
|
|
@ -391,7 +391,7 @@ readline_append_history_file_impl(PyObject *module, int nelements,
|
|||
{
|
||||
if (nelements < 0)
|
||||
{
|
||||
PyErr_SetString(PyExc_ValueError, "nelements must be positive");
|
||||
PyErr_SetString(PyExc_ValueError, "nelements must be non-negative");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue