diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 18:46:19 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 18:46:19 +0100 |
| commit | f17c3de2635df4f5a51c2cb6b99f3e125af19864 (patch) | |
| tree | 0ce2ba9e92cf1872d318ea136b4640bd7579666f /Modules/posixmodule.c | |
| parent | a5ed5f000aad67d216201d959de4c70b7575309d (diff) | |
| download | cpython-git-f17c3de2635df4f5a51c2cb6b99f3e125af19864.tar.gz | |
Use _PyObject_CallNoArg()
Replace:
PyObject_CallFunctionObjArgs(callable, NULL)
with:
_PyObject_CallNoArg(callable)
Diffstat (limited to 'Modules/posixmodule.c')
| -rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index bec7699b55..fee5711e16 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -902,7 +902,7 @@ path_converter(PyObject *o, void *p) goto error_exit; } - o = to_cleanup = PyObject_CallFunctionObjArgs(func, NULL); + o = to_cleanup = _PyObject_CallNoArg(func); Py_DECREF(func); if (NULL == o) { goto error_exit; @@ -12046,7 +12046,7 @@ PyOS_FSPath(PyObject *path) Py_TYPE(path)->tp_name); } - path_repr = PyObject_CallFunctionObjArgs(func, NULL); + path_repr = _PyObject_CallNoArg(func); Py_DECREF(func); if (NULL == path_repr) { return NULL; |
