pylint/reporters/ureports/text_writer.py
def visit_table(self, layout):
        """display a table as text"""
        table_content = self.get_table_content(layout)
        # get columns width
        cols_width = [0] * len(table_content[0])
        for row in table_content:
            for index, col in enumerate(row):
                cols_width[index] = max(cols_width[index], len(col))
        self.default_table(layout, table_content, cols_width)
        self.writeln()
def visit_table(self, layout):
        table_content = self.get_table_content(layout)
        # get columns width
        cols_width = [0] * len(table_content[0])
        for row in table_content:
            for index, col in enumerate(row):
                cols_width[index] = max(cols_width[index], len(col))
        self.default_table(layout, table_content, cols_width)
        self.writeln()
def visit_table ( self , layout ) : table_content = self . get_table_content ( layout ) # get columns width cols_width = [ 0 ] * len ( table_content [ 0 ] ) for row in table_content : for index , col in enumerate ( row ) : cols_width [ index ] = max ( cols_width [ index ] , len ( col ) ) self . default_table ( layout , table_content , cols_width ) self . writeln ( )
display a table as text
display a table as text