Skip to content

Commit c18290c

Browse files
committed
misc style
1 parent 5676c92 commit c18290c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Modules/arraymodule.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3015,11 +3015,13 @@ array_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
30153015

30163016
if ((type == state->ArrayType ||
30173017
type->tp_init == state->ArrayType->tp_init) &&
3018-
!_PyArg_NoKeywords("array.array", kwds))
3018+
!_PyArg_NoKeywords("array.array", kwds)) {
30193019
return NULL;
3020+
}
30203021

3021-
if (!PyArg_ParseTuple(args, "C|O:array", &c, &initial))
3022+
if (!PyArg_ParseTuple(args, "C|O:array", &c, &initial)) {
30223023
return NULL;
3024+
}
30233025

30243026
if (PySys_Audit("array.__new__", "CO",
30253027
c, initial ? initial : Py_None) < 0) {
@@ -3237,8 +3239,9 @@ arrayiter_next_lock_held(arrayiterobject *it)
32373239
ret = (*it->getitem)(ao, it->index++);
32383240
}
32393241
Py_END_CRITICAL_SECTION();
3240-
if (ret != NULL)
3242+
if (ret != NULL) {
32413243
return ret;
3244+
}
32423245
it->ao = NULL;
32433246
Py_DECREF(ao);
32443247
return NULL;

0 commit comments

Comments
 (0)