示例#1
0
def default_loader(file_path):
    try:
        return pickle.load(opener(file_path, "rb"))
    except Exception, e:
        decon_io_logger.warning("Failed to open %s for default_loader", file_path, exc_info=e)
示例#2
0
 def _load(self, file_path):
     self.data = pickle.load(opener(file_path))