def seek(self, pos, whence=0):
        new_position = self.raw.seek(pos, whence)
        if new_position < 0:
            raise IOError("seek() returned an invalid position")
        return new_position
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/_jyio.py/_BufferedIOMixin.seek/original