summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-08-24 22:39:34 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-08-24 22:39:34 (GMT)
commit53cb489ed08c6940b026c1be6b7aec87eb1f02fd (patch)
tree2b09f83e7b13a59d9aeaeee84ddf5cdd598de68d /Objects
parent577e1f8cb41b76ea763910a47abf42a1952ddec3 (diff)
downloadcpython-53cb489ed08c6940b026c1be6b7aec87eb1f02fd.zip
cpython-53cb489ed08c6940b026c1be6b7aec87eb1f02fd.tar.gz
cpython-53cb489ed08c6940b026c1be6b7aec87eb1f02fd.tar.bz2
_PyObject_FastCallDict(): avoid _Py_CheckFunctionResult()
_PyObject_FastCallDict() only requires _Py_CheckFunctionResult() for the slow-path. Other cases already check for the result.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c4
1 files 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();