mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Avoid calling functions with an empty string as format string
Directly pass NULL rather than an empty string.
This commit is contained in:
parent
ad8c83ad6b
commit
3466bde1cc
13 changed files with 34 additions and 34 deletions
|
@ -261,7 +261,7 @@ gen_close_iter(PyObject *yf)
|
|||
PyErr_WriteUnraisable(yf);
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
retval = PyObject_CallFunction(meth, "");
|
||||
retval = _PyObject_CallNoArg(meth);
|
||||
Py_DECREF(meth);
|
||||
if (retval == NULL)
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue