mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438)
This commit is contained in:
parent
3e8f962e63
commit
6326278e8a
5 changed files with 38 additions and 23 deletions
|
@ -5434,7 +5434,7 @@ check_num_args(PyObject *ob, int n)
|
|||
return 1;
|
||||
PyErr_Format(
|
||||
PyExc_TypeError,
|
||||
"expected %d arguments, got %zd", n, PyTuple_GET_SIZE(ob));
|
||||
"expected %d argument%s, got %zd", n, n == 1 ? "" : "s", PyTuple_GET_SIZE(ob));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue