def indent ( self ) : blk = IndentBlock ( self , self . _indent ) self . _indent += 1 return blk
python how to change indentation
Begins an indented block . Must be used in a with code block . All calls to the logger inside of the block will be indented .
def indent(self):
        """
        Begins an indented block. Must be used in a 'with' code block.
        All calls to the logger inside of the block will be indented.
        """
        blk = IndentBlock(self, self._indent)
        self._indent += 1
        return blk