diff options
-rw-r--r-- | Python/ceval.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 9d65495..8a83e99 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2728,16 +2728,6 @@ call_cfunction(PyObject *func, PyObject *arg, PyObject *kw) int flags = PyCFunction_GET_FLAGS(func); if (flags & METH_KEYWORDS) { - if (kw == NULL) { - static PyObject *dict = NULL; - if (dict == NULL) { - dict = PyDict_New(); - if (dict == NULL) - return NULL; - } - kw = dict; - Py_INCREF(dict); - } return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); } if (kw != NULL && PyDict_Size(kw) != 0) { |