def section(self, section_title):
        """ Plain text section content

            Args:
                section_title (str): Name of the section to pull
            Returns:
                str: The content of the section
            Note:
                Returns **None** if section title is not found; only text \
                between title and next section or sub-section title is returned
            Note:
                Side effect is to also pull the content which can be slow
            Note:
                This is a parsing operation and not part of the standard API"""
        section = "== {0} ==".format(section_title)
        try:
            content = self.content
            index = content.index(section) + len(section)

            # ensure we have the full section header...
            while True:
                if content[index + 1] == "=":
                    index += 1
                else:
                    break
        except ValueError:
            return None
        except IndexError:
            pass

        try:
            next_index = self.content.index("==", index)
        except ValueError:
            next_index = len(self.content)

        return self.content[index:next_index].lstrip("=").strip()
def section ( self , section_title ) : section = "== {0} ==" . format ( section_title ) try : content = self . content index = content . index ( section ) + len ( section ) while True : if content [ index + 1 ] == "=" : index += 1 else : break except ValueError : return None except IndexError : pass try : next_index = self . content . index ( "==" , index ) except ValueError : next_index = len ( self . content ) return self . content [ index : next_index ] . lstrip ( "=" ) . strip ( )
Plain text section content

            Args:
                section_title (str): Name of the section to pull
            Returns:
                str: The content of the section
            Note:
                Returns **None** if section title is not found; only text \
                between title and next section or sub-section title is returned
            Note:
                Side effect is to also pull the content which can be slow
            Note:
                This is a parsing operation and not part of the standard API