Skip to content

Commit f1388ee

Browse files
committed
address review: reformat if blocks
1 parent c815882 commit f1388ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Modules/_struct.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,11 +1797,11 @@ s_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
17971797
{
17981798
PyStructObject *self;
17991799

1800-
if ((PyTuple_GET_SIZE(args) != 1 || kwds)
1801-
&& PyErr_WarnEx(PyExc_DeprecationWarning,
1802-
"Struct.__new__() has one positional argument", 1))
1803-
{
1804-
return NULL;
1800+
if (PyTuple_GET_SIZE(args) != 1 || kwds) {
1801+
if (PyErr_WarnEx(PyExc_DeprecationWarning,
1802+
"Struct.__new__() has one positional argument", 1)) {
1803+
return NULL;
1804+
}
18051805
}
18061806
assert(type != NULL);
18071807
allocfunc alloc_func = PyType_GetSlot(type, Py_tp_alloc);

0 commit comments

Comments
 (0)