def __init__(self, namespace): self.namespace = namespace self.db = db.DB(get_index_path())
def __init__(self): self.db = db.DB(get_index_path())
def __init__(self, namespace, i_know_what_im_doing=False): if not i_know_what_im_doing: raise Exception('depends on commited data in leveldb') self.namespace = namespace self.db = db.DB(get_index_path())