diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 18:45:50 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 18:45:50 +0100 |
commit | a5ed5f000aad67d216201d959de4c70b7575309d (patch) | |
tree | f30829b98aaada578afe0a9b1dced36e4c0f237f /Modules/main.c | |
parent | 2a358f862bb24ddfb26c45d7e4af87c073d4bc1f (diff) | |
download | cpython-git-a5ed5f000aad67d216201d959de4c70b7575309d.tar.gz |
Use _PyObject_CallNoArg()
Replace:
PyObject_CallObject(callable, NULL)
with:
_PyObject_CallNoArg(callable)
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index d75f64a65f..8691d153d7 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -157,7 +157,7 @@ static void RunInteractiveHook(void) if (hook == NULL) PyErr_Clear(); else { - result = PyObject_CallObject(hook, NULL); + result = _PyObject_CallNoArg(hook); Py_DECREF(hook); if (result == NULL) goto error; |