def read(self, f):
        if not os.path.exists(f):
            logging.info("%s does not exist." % f)
            return None

        logging.info("Retrieving state from %s." % f)
        fp = open(f)
        state = pickle.load(fp)
        fp.close()
        return state
Read method.
dataset/ETHPy150Open magsol/pybot/pybot/storage.py/PickleStorage.read