(self, data)
return start, end
Extract Doctests if found and return it

        :param data: string to parse
        :return: index of start and index of end of the doctest, else (-1, -1)
        :rtype: tuple
Extract Doctests if found and return it
Extract Doctests if found and return it
def get_doctests_indexes(self, data):
        """Extract Doctests if found and return it

        :param data: string to parse
        :return: index of start and index of end of the doctest, else (-1, -1)
        :rtype: tuple

        """
        start, end = -1, -1
        datalst = data.splitlines()
        for i, line in enumerate(datalst):
            if start > -1:
                if line.strip() == "":
                    break
                end = i
            elif line.strip().startswith(">>>"):
                start = i
                end = i
        return start, end
def get_doctests_indexes ( self , data ) : start , end = - 1 , - 1 datalst = data . splitlines ( ) for i , line in enumerate ( datalst ) : if start > - 1 : if line . strip ( ) == "" : break end = i elif line . strip ( ) . startswith ( ">>>" ) : start = i end = i return start , end