summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-06 17:45:50 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-12-06 17:45:50 (GMT)
commita5ed5f000aad67d216201d959de4c70b7575309d (patch)
treef30829b98aaada578afe0a9b1dced36e4c0f237f /Python
parent2a358f862bb24ddfb26c45d7e4af87c073d4bc1f (diff)
downloadcpython-a5ed5f000aad67d216201d959de4c70b7575309d.zip
cpython-a5ed5f000aad67d216201d959de4c70b7575309d.tar.gz
cpython-a5ed5f000aad67d216201d959de4c70b7575309d.tar.bz2
Use _PyObject_CallNoArg()
Replace: PyObject_CallObject(callable, NULL) with: _PyObject_CallNoArg(callable)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 8b17c09..8420aec 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4198,7 +4198,7 @@ do_raise(PyObject *exc, PyObject *cause)
if (PyExceptionClass_Check(exc)) {
type = exc;
- value = PyObject_CallObject(exc, NULL);
+ value = _PyObject_CallNoArg(exc);
if (value == NULL)
goto raise_error;
if (!PyExceptionInstance_Check(value)) {
@@ -4229,7 +4229,7 @@ do_raise(PyObject *exc, PyObject *cause)
if (cause) {
PyObject *fixed_cause;
if (PyExceptionClass_Check(cause)) {
- fixed_cause = PyObject_CallObject(cause, NULL);
+ fixed_cause = _PyObject_CallNoArg(cause);
if (fixed_cause == NULL)
goto raise_error;
Py_DECREF(cause);