summaryrefslogtreecommitdiff
path: root/Modules/main.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-01-31 23:31:20 -0800
committerBenjamin Peterson <benjamin@python.org>2017-01-31 23:31:20 -0800
commit75a56cd1847142d9c893b6df5fb674f54b34d9ed (patch)
tree73d254a7d8ed4bc2f76293a2b2e223c3f48e7dd4 /Modules/main.c
parentbff21dc9e43eaf9549abe72a32d98a6c20de8c5b (diff)
parentfcd15724f28a5249f13690af32dc12628ab186c6 (diff)
downloadcpython-75a56cd1847142d9c893b6df5fb674f54b34d9ed.tar.gz
merge 3.6 (#29398)
Diffstat (limited to 'Modules/main.c')
-rw-r--r--Modules/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 4cbe376975..020c353e0c 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -160,7 +160,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;