Skip to content

Commit 0a48bb4

Browse files
committed
fix: update error message for negative nelements in readline_append_history_file_impl
1 parent 487e91c commit 0a48bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/readline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ readline_append_history_file_impl(PyObject *module, int nelements,
391391
{
392392
if (nelements < 0)
393393
{
394-
PyErr_SetString(PyExc_ValueError, "nelements must be positive");
394+
PyErr_SetString(PyExc_ValueError, "nelements must be non-negative");
395395
return NULL;
396396
}
397397

0 commit comments

Comments
 (0)