def _get_list_of_tables(tables):
 from .table import Table, Row
 if (not isinstance(tables, collections.Sequence)):
  tables = [tables]
 if (any(((not isinstance(x, (Table, Row))) for x in tables)) or (len(tables) == 0)):
  raise TypeError(u'`tables` arg must be a Table or sequence of Tables or Rows')
 tables = [(x if isinstance(x, Table) else Table(x)) for x in tables]
 return tables

def _get_list_of_tables ( tables ) : from . table import Table , Row if ( not isinstance ( tables , collections . Sequence ) ) : tables = [ tables ] if ( any ( ( ( not isinstance ( x , ( Table , Row ) ) ) for x in tables ) ) or ( len ( tables ) == 0 ) ) : raise TypeError ( u'`tables` arg must be a Table or sequence of Tables or Rows' ) tables = [ ( x if isinstance ( x , Table ) else Table ( x ) ) for x in tables ] return tables
check that tables is a table or sequence of tables .