mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Use consistent style for else if / else
This commit is contained in:
parent
bfd78370a5
commit
6eb50b1f5b
1 changed files with 5 additions and 2 deletions
|
@ -3389,11 +3389,14 @@ xmlparser_close(XMLParserObject* self, PyObject* args)
|
|||
if (TreeBuilder_CheckExact(self->target)) {
|
||||
Py_DECREF(res);
|
||||
return treebuilder_done((TreeBuilderObject*) self->target);
|
||||
} if (self->handle_close) {
|
||||
}
|
||||
else if (self->handle_close) {
|
||||
Py_DECREF(res);
|
||||
return PyObject_CallFunction(self->handle_close, "");
|
||||
} else
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue