summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-04 22:59:09 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-12-04 22:59:09 +0100
commitde4ae3d4869e88dda8bfbad24880cb398160a7a0 (patch)
treeb8c42842a31f408c9fe09993e19fba49d60b2dcf /Python/sysmodule.c
parentc8d03187ff85326ab8b24af06f8a4e391365f42a (diff)
downloadcpython-git-de4ae3d4869e88dda8bfbad24880cb398160a7a0.tar.gz
Backed out changeset b9c9691c72c5
Issue #28858: The change b9c9691c72c5 introduced a regression. It seems like _PyObject_CallArg1() uses more stack memory than PyObject_CallFunctionObjArgs().
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 19a3850a59..98a66741f5 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1098,7 +1098,7 @@ _PySys_GetSizeOf(PyObject *o)
Py_TYPE(o)->tp_name);
}
else {
- res = _PyObject_CallNoArg(method);
+ res = PyObject_CallFunctionObjArgs(method, NULL);
Py_DECREF(method);
}