mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Use _PyObject_CallNoArg()
Replace:
PyObject_CallFunctionObjArgs(callable, NULL)
with:
_PyObject_CallNoArg(callable)
This commit is contained in:
parent
a5ed5f000a
commit
f17c3de263
15 changed files with 21 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue