expand()
Expand a section into its subsections.
Usage
expand(section)Parameters
section: str-
The section name to expand.
Returns
dict-
A dictionary with the section and its children.
Examples
>>> expand("intro")
{'section': 'intro', 'children': []}