summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorXtreak <tirkarthi@users.noreply.github.com>2018-12-21 20:15:13 +0530
committerSerhiy Storchaka <storchaka@gmail.com>2018-12-21 16:45:13 +0200
commit6326278e8a3a4b6ac41a74effa63331b1b9fdf5c (patch)
tree5ea5e20db776d8f017fb237a6194ef08c00e9140 /Objects
parent3e8f962e63c2f929604443531a9a3aced242f3e8 (diff)
downloadcpython-git-6326278e8a3a4b6ac41a74effa63331b1b9fdf5c.tar.gz
bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index d1f1e8cd24..ace45ba579 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -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;
}