def updatepos(self, i, j):
        if i >= j:
            return j
        rawdata = self.rawdata
        nlines = rawdata.count("\n", i, j)
        if nlines:
            self.lineno = self.lineno + nlines
            pos = rawdata.rindex("\n", i, j) # Should not fail
            self.offset = (pos+1)-j
        else:
            self.offset = self.offset + j-i
        return j
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/markupbase.py/ParserBase.updatepos/swapped operands of `-`