@@ -560,7 +560,8 @@ analyze_name(PySTEntryObject *ste, PyObject *scopes, PyObject *name, long flags,
560
560
}
561
561
562
562
static int
563
- is_free_in_any_child (PySTEntryObject * entry , PyObject * key ) {
563
+ is_free_in_any_child (PySTEntryObject * entry , PyObject * key )
564
+ {
564
565
for (Py_ssize_t i = 0 ; i < PyList_GET_SIZE (entry -> ste_children ); i ++ ) {
565
566
PySTEntryObject * child_ste = (PySTEntryObject * )PyList_GET_ITEM (
566
567
entry -> ste_children , i );
@@ -604,7 +605,8 @@ inline_comprehension(PySTEntryObject *ste, PySTEntryObject *comp,
604
605
return 0 ;
605
606
}
606
607
SET_SCOPE (scopes , k , scope );
607
- } else {
608
+ }
609
+ else {
608
610
// free vars in comprehension that are locals in outer scope can
609
611
// now simply be locals, unless they are free in comp children
610
612
if ((PyLong_AsLong (existing ) & DEF_BOUND ) &&
@@ -902,7 +904,9 @@ analyze_block(PySTEntryObject *ste, PyObject *bound, PyObject *free,
902
904
903
905
if (!analyze_child_block (entry , newbound , newfree , newglobal ,
904
906
& child_free ))
907
+ {
905
908
goto error ;
909
+ }
906
910
if (inline_comp ) {
907
911
if (!inline_comprehension (ste , entry , scopes , child_free )) {
908
912
Py_DECREF (child_free );
@@ -927,8 +931,9 @@ analyze_block(PySTEntryObject *ste, PyObject *bound, PyObject *free,
927
931
assert (c && PySTEntry_Check (c ));
928
932
entry = (PySTEntryObject * )c ;
929
933
if (entry -> ste_comp_inlined &&
930
- PyList_SetSlice (ste -> ste_children , i , i + 1 ,
931
- entry -> ste_children ) < 0 ) {
934
+ PyList_SetSlice (ste -> ste_children , i , i + 1 ,
935
+ entry -> ste_children ) < 0 )
936
+ {
932
937
goto error ;
933
938
}
934
939
}
0 commit comments