def __init__(self, stores=[]):
    '''Initialize the datastore with any provided datastores.'''
    if not isinstance(stores, list):
      stores = list(stores)

    for store in stores:
      if not isinstance(store, Datastore):
        raise TypeError("all stores must be of type %s" % Datastore)

    self._stores = stores
def __init__ ( self , stores = [ ] ) : if not isinstance ( stores , list ) : stores = list ( stores ) for store in stores : if not isinstance ( store , Datastore ) : raise TypeError ( "all stores must be of type %s" % Datastore ) self . _stores = stores
Initialize the datastore with any provided datastores.