def format_no_tty(table):
    """Converts SoftLayer.CLI.formatting.Table instance to a prettytable."""

    for i, row in enumerate(table.rows):
        for j, item in enumerate(row):
            table.rows[i][j] = format_output(item, fmt='raw')
    ptable = table.prettytable()

    for col in table.columns:
        ptable.align[col] = 'l'

    ptable.hrules = prettytable.NONE
    ptable.border = False
    ptable.header = False
    ptable.left_padding_width = 0
    ptable.right_padding_width = 2
    return ptable
def format_no_tty ( table ) : for i , row in enumerate ( table . rows ) : for j , item in enumerate ( row ) : table . rows [ i ] [ j ] = format_output ( item , fmt = 'raw' ) ptable = table . prettytable ( ) for col in table . columns : ptable . align [ col ] = 'l' ptable . hrules = prettytable . NONE ptable . border = False ptable . header = False ptable . left_padding_width = 0 ptable . right_padding_width = 2 return ptable
Converts SoftLayer.CLI.formatting.Table instance to a prettytable.