diff options
author | Eli Bendersky <eliben@gmail.com> | 2013-08-24 22:17:08 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2013-08-24 22:17:08 (GMT) |
commit | 6eb50b1f5b7c7406a06f77862db9234737b4e0f2 (patch) | |
tree | 2f642880aa06dd96096d4cf9a633619b5c8aaa2d /Modules/_elementtree.c | |
parent | bfd78370a59863e0f1715d122cc1e4b26101028e (diff) | |
download | cpython-6eb50b1f5b7c7406a06f77862db9234737b4e0f2.zip cpython-6eb50b1f5b7c7406a06f77862db9234737b4e0f2.tar.gz cpython-6eb50b1f5b7c7406a06f77862db9234737b4e0f2.tar.bz2 |
Use consistent style for else if / else
Diffstat (limited to 'Modules/_elementtree.c')
-rw-r--r-- | Modules/_elementtree.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 3c1358c..e886ae9 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -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* |