summaryrefslogtreecommitdiffstats
path: root/Objects/descrobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-06-06 15:45:22 (GMT)
committerGitHub <noreply@github.com>2017-06-06 15:45:22 (GMT)
commit5eb788bf7f54a8e04429e18fc332db858edd64b6 (patch)
treeff7ea360d2765c1ec18ad02fcfc1de473a1d7b65 /Objects/descrobject.c
parent5cefb6cfdd089d237ba6724bb5311ee4f04be59f (diff)
downloadcpython-5eb788bf7f54a8e04429e18fc332db858edd64b6.zip
cpython-5eb788bf7f54a8e04429e18fc332db858edd64b6.tar.gz
cpython-5eb788bf7f54a8e04429e18fc332db858edd64b6.tar.bz2
bpo-30534: Fixed error messages when pass keyword arguments (#1901)
to functions implemented in C that don't support this. Also unified error messages for functions that don't take positional or keyword arguments.
Diffstat (limited to 'Objects/descrobject.c')
-rw-r--r--Objects/descrobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 1d11605..c20ca9b 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -1176,7 +1176,7 @@ wrapper_call(wrapperobject *wp, PyObject *args, PyObject *kwds)
if (kwds != NULL && (!PyDict_Check(kwds) || PyDict_GET_SIZE(kwds) != 0)) {
PyErr_Format(PyExc_TypeError,
- "wrapper %s doesn't take keyword arguments",
+ "wrapper %s() takes no keyword arguments",
wp->descr->d_base->name);
return NULL;
}