summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-06 18:46:19 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-12-06 18:46:19 +0100
commita95a307d2cbb7fc1c778691f142e0c21c05fd5bc (patch)
treead6414ad4a6b87daa31bd39654bbbee776488550 /Python/sysmodule.c
parentb729181a504b6aff2461dcbc07c33e902ee90cb0 (diff)
downloadcpython-a95a307d2cbb7fc1c778691f142e0c21c05fd5bc.tar.gz
Use _PyObject_CallNoArg()
Replace: PyObject_CallFunctionObjArgs(callable, NULL) with: _PyObject_CallNoArg(callable)
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 416a02b546..1537313b43 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_CallFunctionObjArgs(method, NULL);
+ res = _PyObject_CallNoArg(method);
Py_DECREF(method);
}