From 196a530e00d88a138973bf9182e013937e293f97 Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Thu, 4 Jul 2019 12:31:34 +0200 Subject: bpo-37483: add _PyObject_CallOneArg() function (#14558) --- Python/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/import.c') diff --git a/Python/import.c b/Python/import.c index 3937fbe37d9..76866ae645a 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1180,7 +1180,7 @@ get_path_importer(PyThreadState *tstate, PyObject *path_importer_cache, PyObject *hook = PyList_GetItem(path_hooks, j); if (hook == NULL) return NULL; - importer = PyObject_CallFunctionObjArgs(hook, p, NULL); + importer = _PyObject_CallOneArg(hook, p); if (importer != NULL) break; -- cgit v1.2.3