summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-05 17:04:32 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-12-05 17:04:32 +0100
commit40273ec4f37c65c13a09d0ac23b08c99ebe2f1a3 (patch)
treee843389bf11bcc519d75967e52d9a4ddc04f0b1e /Python/errors.c
parent0a0cf9e33e1c7355efbbb00702d59f66f1a02df6 (diff)
downloadcpython-40273ec4f37c65c13a09d0ac23b08c99ebe2f1a3.tar.gz
Issue #28858: Remove _PyObject_CallArg1() macro
Replace _PyObject_CallArg1(func, arg) with PyObject_CallFunctionObjArgs(func, arg, NULL) Using the _PyObject_CallArg1() macro increases the usage of the C stack, which was unexpected and unwanted. PyObject_CallFunctionObjArgs() doesn't have this issue.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 01304d25a1..74283c9be3 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -62,7 +62,7 @@ _PyErr_CreateException(PyObject *exception, PyObject *value)
return PyObject_Call(exception, value, NULL);
}
else {
- return _PyObject_CallArg1(exception, value);
+ return PyObject_CallFunctionObjArgs(exception, value, NULL);
}
}