def checkPos(self, pos):
        if not pos <= self._breakPoint:
            raise Error("pos (" + str(pos) + ") is invalid: beyond the stream's end (" +
                        str(self._breakPoint-1) + ")" )
        elif not pos >=0:
            raise Error("pos (" + str(pos) + ") is invalid: less than 0" )
dataset/ETHPy150Open binhex/moviegrabber/lib/site-packages/Cheetah/SourceReader.py/SourceReader.checkPos/original