def get_section(f, outside_indentation):
    collector = []

    while True:
        line = f.readline()
        # If leading spaces are outside_indentation, we've reached the end
        # of the section
        if leading_spaces(line) == outside_indentation:
            break
        setting, line = line.split(':', maxsplit=1)
        try:
            default, comment = line.split('#', maxsplit=1)
        except __HOLE__:  # need more than 1 value to unpack
            default = line
            comment = ''
        line_tuple = (setting.strip(), default.strip(), comment.strip())
        # Skip things marked as 'UNCODUMENTED'
        if not line_tuple[2].startswith('UNDOCUMENTED'):
            collector.append(line_tuple)

    return collector, line
dataset/ETHPy150Open calliope-project/calliope/doc/generate_tables.py/get_section