Skip to content

Commit b853fba

Browse files
Apply PEP 7 to affected lines
1 parent 5fd0b8a commit b853fba

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Modules/_elementtree.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,9 @@ _elementtree_Element_append_impl(ElementObject *self, PyObject *subelement)
694694
/*[clinic end generated code: output=54a884b7cf2295f4 input=439f2bd777288fb6]*/
695695
{
696696
elementtreestate *st = ET_STATE_GLOBAL;
697-
if (element_add_subelement(st, self, subelement) < 0)
697+
if (element_add_subelement(st, self, subelement) < 0) {
698698
return NULL;
699+
}
699700

700701
Py_RETURN_NONE;
701702
}
@@ -2641,8 +2642,9 @@ treebuilder_handle_start(elementtreestate *st, TreeBuilderObject *self,
26412642
Py_CLEAR(self->last_for_tail);
26422643

26432644
if (this != Py_None) {
2644-
if (treebuilder_add_subelement(st, this, node) < 0)
2645+
if (treebuilder_add_subelement(st, this, node) < 0) {
26452646
goto error;
2647+
}
26462648
} else {
26472649
if (self->root) {
26482650
PyErr_SetString(
@@ -2763,8 +2765,9 @@ treebuilder_handle_comment(elementtreestate *st, TreeBuilderObject *self,
27632765

27642766
this = self->this;
27652767
if (self->insert_comments && this != Py_None) {
2766-
if (treebuilder_add_subelement(st, this, comment) < 0)
2768+
if (treebuilder_add_subelement(st, this, comment) < 0) {
27672769
goto error;
2770+
}
27682771
Py_XSETREF(self->last_for_tail, Py_NewRef(comment));
27692772
}
27702773
} else {
@@ -2803,8 +2806,9 @@ treebuilder_handle_pi(elementtreestate *st, TreeBuilderObject *self,
28032806

28042807
this = self->this;
28052808
if (self->insert_pis && this != Py_None) {
2806-
if (treebuilder_add_subelement(st, this, pi) < 0)
2809+
if (treebuilder_add_subelement(st, this, pi) < 0) {
28072810
goto error;
2811+
}
28082812
Py_XSETREF(self->last_for_tail, Py_NewRef(pi));
28092813
}
28102814
} else {

0 commit comments

Comments
 (0)