bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438)

This commit is contained in:
Xtreak 2018-12-21 20:15:13 +05:30 committed by Serhiy Storchaka
parent 3e8f962e63
commit 6326278e8a
5 changed files with 38 additions and 23 deletions

View file

@ -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;
}