def _read_sections(self):
        while not self._doc.eof():
            data = self._read_to_next_section()
            name = data[0].strip()

            if name.startswith('..'):  # index section
                yield name, data[1:]
            elif len(data) < 2:
                yield StopIteration
            else:
                yield name, self._strip(data[2:])
dataset/ETHPy150Open amueller/word_cloud/doc/sphinxext/numpy_ext/docscrape.py/NumpyDocString._read_sections/original