def __init__(self, fname, mode):
        self.fp = open(fname, mode)
        if 'r' in mode:
            self.buffer = self.fp.read()
        else:
            self.buffer = ""
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actorstore/tests/test_actors.py/FDMock.__init__/original