From 53cb489ed08c6940b026c1be6b7aec87eb1f02fd Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 25 Aug 2016 00:39:34 +0200 Subject: _PyObject_FastCallDict(): avoid _Py_CheckFunctionResult() _PyObject_FastCallDict() only requires _Py_CheckFunctionResult() for the slow-path. Other cases already check for the result. --- Objects/abstract.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/abstract.c b/Objects/abstract.c index d271d94..db9f926 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -2299,9 +2299,9 @@ _PyObject_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, result = (*call)(func, tuple, kwargs); Py_DECREF(tuple); - } - result = _Py_CheckFunctionResult(func, result, NULL); + result = _Py_CheckFunctionResult(func, result, NULL); + } exit: Py_LeaveRecursiveCall(); -- cgit v0.12