(block, stmt_types)
Filters given block returning statments of specific type
Filters given block returning statments of specific type
Filters given block returning statments of specific type
def filter_block_statements(block, stmt_types):
    """
    Filters given block returning statments of specific type
    """

    for stmt in block.body:
        if isinstance(stmt, stmt_types):
            yield stmt
def filter_block_statements ( block , stmt_types ) : for stmt in block . body : if isinstance ( stmt , stmt_types ) : yield stmt