diff options
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 5aed5ff..d81f3fd 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2432,6 +2432,11 @@ call_function(func, arg, kw) } arg = newarg; } + if (!PyFunction_Check(func)) { + result = PyEval_CallObjectWithKeywords(func, arg, kw); + Py_DECREF(arg); + return result; + } } else { if (!PyFunction_Check(func)) { |