_PyObject_FastCallDict(): avoid _Py_CheckFunctionResult()

_PyObject_FastCallDict() only requires _Py_CheckFunctionResult() for the
slow-path. Other cases already check for the result.
This commit is contained in:
Victor Stinner 2016-08-25 00:39:34 +02:00
parent 577e1f8cb4
commit 53cb489ed0
1 changed files with 2 additions and 2 deletions

View File

@ -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();