def printtable(h, header):
    """Print as a table."""
    hk = header_fields(h)
    if (header):
        printheader()
    writer = csv.DictWriter(sys.stdout, hk, extrasaction='ignore')
    writer.writerow(h)
def printtable ( h , header ) : hk = header_fields ( h ) if ( header ) : printheader ( ) writer = csv . DictWriter ( sys . stdout , hk , extrasaction = 'ignore' ) writer . writerow ( h )
Print as a table.