summaryrefslogtreecommitdiffstats
path: root/Objects/typeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r--Objects/typeobject.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 46f944c..4d25927 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -5946,7 +5946,7 @@ SLOT0(slot_nb_absolute, "__abs__")
static int
slot_nb_bool(PyObject *self)
{
- PyObject *func, *args, *value;
+ PyObject *func, *value;
int result;
int using_len = 0;
_Py_IDENTIFIER(__bool__);
@@ -5967,13 +5967,7 @@ slot_nb_bool(PyObject *self)
using_len = 1;
}
- args = PyTuple_New(0);
- if (args == NULL) {
- goto error;
- }
-
- value = PyObject_Call(func, args, NULL);
- Py_DECREF(args);
+ value = _PyObject_FastCall(func, NULL, 0, NULL);
if (value == NULL) {
goto error;
}