logparser/utils.py
def filter_blocks(self, selector):
        """filtering multi blocks which have same structure selected by selector.
        selector is a class of `BlockFilter`
        
        """
        blocks = []
        selected = []
        for line in self._lines:
            start, end = selector.check(line)
            #logger.debug(f"line:{[line]}, {start}, {end}")
            if start:
                selected.append(line)
                continue
            if end:
                selected.append(line)
                blocks.append(selected)
                selected = []
                
                
        return blocks
filtering multi blocks which have same structure selected by selector.
        selector is a class of `BlockFilter`
        
        
filtering multi blocks which have same structure selected by selector.
selector is a class of `BlockFilter`
filtering multi blocks which have same structure selected by selector . selector is a class of ` BlockFilter `
def filter_blocks(self, selector):
        blocks = []
        selected = []
        for line in self._lines:
            start, end = selector.check(line)
            if start:
                selected.append(line)
                continue
            if end:
                selected.append(line)
                blocks.append(selected)
                selected = []
        return blocks
def filter_blocks ( self , selector ) : blocks = [ ] selected = [ ] for line in self . _lines : start , end = selector . check ( line ) if start : selected . append ( line ) continue if end : selected . append ( line ) blocks . append ( selected ) selected = [ ] return blocks
filtering multi blocks which have same structure selected by selector.
filtering multi blocks which have same structure selected by selector .
"""filtering multi blocks which have same structure selected by selector.
        selector is a class of `BlockFilter`
        
        """ #logger.debug(f"line:{[line]}, {start}, {end}")
self
selector