

def section(self, section_title):
    "\n    Get the plain text content of a section from `self.sections`.\n    Returns None if `section_title` isn't found, otherwise returns a whitespace stripped string.\n\n    This is a convenience method that wraps self.content.\n\n    .. warning:: Calling `section` on a section that has subheadings will NOT return\n           the full text of all of the subsections. It only gets the text between\n           `section_title` and the next subheading, which is often empty.\n    "
    section = '== {} =='.format(section_title)
    try:
        index = (self.content.index(section) + len(section))
    except ValueError:
        return None
    try:
        next_index = self.content.index('==', section_title)
    except ValueError:
        next_index = len(self.content)
    return self.content[index:next_index].lstrip('=').strip()

dataset/ETHPy150Open goldsmith/Wikipedia/wikipedia/wikipedia.py WikipediaPage.section/VarMisuse@69/264 `index`->`section_title`