diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 17:46:19 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 17:46:19 (GMT) |
commit | f17c3de2635df4f5a51c2cb6b99f3e125af19864 (patch) | |
tree | 0ce2ba9e92cf1872d318ea136b4640bd7579666f /Python/sysmodule.c | |
parent | a5ed5f000aad67d216201d959de4c70b7575309d (diff) | |
download | cpython-f17c3de2635df4f5a51c2cb6b99f3e125af19864.zip cpython-f17c3de2635df4f5a51c2cb6b99f3e125af19864.tar.gz cpython-f17c3de2635df4f5a51c2cb6b99f3e125af19864.tar.bz2 |
Use _PyObject_CallNoArg()
Replace:
PyObject_CallFunctionObjArgs(callable, NULL)
with:
_PyObject_CallNoArg(callable)
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 416a02b..1537313 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); } |