(self, pos)
return 0 if tol == -1 else tol + 1
Returns top of line at pos
Returns top of line at pos
Returns top of line at pos
def gettol(self, pos):
        """Returns top of line at pos"""

        if pos == 0:
            return 0
        tol = self.buf.rfindchr('\n', 0, pos)
        return 0 if tol == -1 else tol + 1
def gettol ( self , pos ) : if pos == 0 : return 0 tol = self . buf . rfindchr ( '\n' , 0 , pos ) return 0 if tol == - 1 else tol + 1