table.py
def dump_to_terminal(self):
        """Pretty prints the table headers and rows in a terminal friendly
        format.

        """
        headers, rows = self._headers, self._rows
        max_widths = self._find_max_column_widths(headers, rows)

        # Print the headers.
        _print_horizontal_line(max_widths)

        sys.stdout.write("|")
        for i in xrange(len(headers)):
            sys.stdout.write(" ")
            _print_entry_centered(headers[i], max_widths[i])
            sys.stdout.write(" |")
        sys.stdout.write('\n')

        _print_horizontal_line(max_widths)

        # Print each row.
        for row in rows:
            sys.stdout.write("|")
            for i in xrange(len(row)):
                sys.stdout.write(" ")
                _print_entry_left(str(row[i]), max_widths[i])
                sys.stdout.write(" |")
            sys.stdout.write('\n')

        _print_horizontal_line(max_widths)
Pretty prints the table headers and rows in a terminal friendly
        format.

        
Pretty prints the table headers and rows in a terminal friendly
format.
Pretty prints the table headers and rows in a terminal friendly format .
def dump_to_terminal(self):
        headers, rows = self._headers, self._rows
        max_widths = self._find_max_column_widths(headers, rows)
        _print_horizontal_line(max_widths)
        sys.stdout.write("|")
        for i in xrange(len(headers)):
            sys.stdout.write(" ")
            _print_entry_centered(headers[i], max_widths[i])
            sys.stdout.write(" |")
        sys.stdout.write('\n')
        _print_horizontal_line(max_widths)
        for row in rows:
            sys.stdout.write("|")
            for i in xrange(len(row)):
                sys.stdout.write(" ")
                _print_entry_left(str(row[i]), max_widths[i])
                sys.stdout.write(" |")
            sys.stdout.write('\n')
        _print_horizontal_line(max_widths)
def dump_to_terminal ( self ) : headers , rows = self . _headers , self . _rows max_widths = self . _find_max_column_widths ( headers , rows ) _print_horizontal_line ( max_widths ) sys . stdout . write ( "|" ) for i in xrange ( len ( headers ) ) : sys . stdout . write ( " " ) _print_entry_centered ( headers [ i ] , max_widths [ i ] ) sys . stdout . write ( " |" ) sys . stdout . write ( '\n' ) _print_horizontal_line ( max_widths ) for row in rows : sys . stdout . write ( "|" ) for i in xrange ( len ( row ) ) : sys . stdout . write ( " " ) _print_entry_left ( str ( row [ i ] ) , max_widths [ i ] ) sys . stdout . write ( " |" ) sys . stdout . write ( '\n' ) _print_horizontal_line ( max_widths )
Pretty prints the table headers and rows in a terminal friendly
format.
Pretty prints the table headers and rows in a terminal friendly format .
"""Pretty prints the table headers and rows in a terminal friendly
        format.

        """ # Print the headers. # Print each row.
self