Skip to content

Commit 086a0c9

Browse files
committed
Multiline if properly done
1 parent 6faf358 commit 086a0c9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Objects/exceptions.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2709,12 +2709,13 @@ AttributeError_str(PyObject *op)
27092709
PyObject *arg, *obj = NULL, *name;
27102710

27112711
Py_BEGIN_CRITICAL_SECTION(self);
2712-
if (self->obj && self->name && PyUnicode_Check(self->name)
2712+
if (
2713+
self->obj && self->name && PyUnicode_Check(self->name)
27132714
&& ((PyTuple_GET_SIZE(self->args) == 1
27142715
&& PyUnicode_Check(arg = PyTuple_GET_ITEM(self->args, 0))
27152716
&& PyUnicode_Equal(arg, self->name))
2716-
|| PyTuple_GET_SIZE(self->args) == 0))
2717-
{
2717+
|| PyTuple_GET_SIZE(self->args) == 0)
2718+
) {
27182719
obj = Py_NewRef(self->obj);
27192720
name = Py_NewRef(self->name);
27202721
}

0 commit comments

Comments
 (0)