summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-07-10 08:25:34 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-07-10 08:25:34 (GMT)
commit7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a (patch)
tree791a6f43990e506a613becf34642cba64aa92ae6 /Python
parentbb2bae84d6b29f991b757b46430c3c15c60059e9 (diff)
downloadcpython-7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a.zip
cpython-7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a.tar.gz
cpython-7e60192fe0dfd763b0d458cf0898ba4f7ac7d81a.tar.bz2
Remove _PyArg_NoStackKeywords(). (#2641)
Diffstat (limited to 'Python')
-rw-r--r--Python/getargs.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index f555870..c61d945 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -2483,7 +2483,6 @@ _PyArg_UnpackStack(PyObject **args, Py_ssize_t nargs, const char *name,
#undef _PyArg_NoKeywords
-#undef _PyArg_NoStackKeywords
#undef _PyArg_NoPositional
/* For type constructors that don't take keyword args
@@ -2512,23 +2511,6 @@ _PyArg_NoKeywords(const char *funcname, PyObject *kwargs)
int
-_PyArg_NoStackKeywords(const char *funcname, PyObject *kwnames)
-{
- if (kwnames == NULL) {
- return 1;
- }
- assert(PyTuple_CheckExact(kwnames));
- if (PyTuple_GET_SIZE(kwnames) == 0) {
- return 1;
- }
-
- PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments",
- funcname);
- return 0;
-}
-
-
-int
_PyArg_NoPositional(const char *funcname, PyObject *args)
{
if (args == NULL)