table.py
def _find_max_column_widths(self, headers, rows):
        """Finds the maximum width of each column based on its contents.

        """
        # Find the max width for each column
        max_widths = [_len_sans_ansi(x) for x in headers]
        for row in rows:
            for i in xrange(self._row_length):
                width = _len_sans_ansi(str(row[i]))
                if width > max_widths[i]:
                    max_widths[i] = width
        return max_widths
Finds the maximum width of each column based on its contents.

        
Finds the maximum width of each column based on its contents.
Finds the maximum width of each column based on its contents .
def _find_max_column_widths(self, headers, rows):
        max_widths = [_len_sans_ansi(x) for x in headers]
        for row in rows:
            for i in xrange(self._row_length):
                width = _len_sans_ansi(str(row[i]))
                if width > max_widths[i]:
                    max_widths[i] = width
        return max_widths
def _find_max_column_widths ( self , headers , rows ) : max_widths = [ _len_sans_ansi ( x ) for x in headers ] for row in rows : for i in xrange ( self . _row_length ) : width = _len_sans_ansi ( str ( row [ i ] ) ) if width > max_widths [ i ] : max_widths [ i ] = width return max_widths
Finds the maximum width of each column based on its contents.
Finds the maximum width of each column based on its contents .
"""Finds the maximum width of each column based on its contents.

        """ # Find the max width for each column
self
headers
rows