diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 18 |
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) |