mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -2074,7 +2074,7 @@ builtin_round(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
}
|
||||
|
||||
if (ndigits == NULL || ndigits == Py_None)
|
||||
result = PyObject_CallFunctionObjArgs(round, NULL);
|
||||
result = _PyObject_CallNoArg(round);
|
||||
else
|
||||
result = PyObject_CallFunctionObjArgs(round, ndigits, NULL);
|
||||
Py_DECREF(round);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue