gh-122431: Correct the non-negative error message in `readline.append_history_file` (GH-143075)
"positive" -> "non-negative", since zero is included.
(cherry picked from commit
a273bc99d2ff853f59ee6da4d897b1be72a03975)
Co-authored-by: Zheng Yu <dataisland@outlook.com>
--- /dev/null
+Corrected the error message in :func:`readline.append_history_file` to state that ``nelements`` must be non-negative instead of positive.
{
if (nelements < 0)
{
- PyErr_SetString(PyExc_ValueError, "nelements must be positive");
+ PyErr_SetString(PyExc_ValueError, "nelements must be non-negative");
return NULL;
}