def read(self, amount):
        if len(self.buff) < amount:
            try:
                self.buff += next(self)
            except __HOLE__:
                pass
        rv, self.buff = self.buff[:amount], self.buff[amount:]
        return rv
dataset/ETHPy150Open openstack/swift/test/probe/common.py/Body.read