mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +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
|
|
@ -3399,7 +3399,7 @@ _elementtree_XMLParser_close_impl(XMLParserObject *self)
|
|||
}
|
||||
else if (self->handle_close) {
|
||||
Py_DECREF(res);
|
||||
return PyObject_CallFunction(self->handle_close, "");
|
||||
return _PyObject_CallNoArg(self->handle_close);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue