'For sections or repeated sections.'

def NewSection(self, token_type, section_name):

    if (token_type == REPEATED_SECTION_TOKEN):
        new_block = _RepeatedSection(section_name)
        func = _DoRepeatedSection
    elif (token_type == SECTION_TOKEN):
        new_block = _Section(section_name)
        func = _DoSection
    else:
        raise AssertionError(('Invalid    token    type    %s' % token_type))
    self._NewSection(func, new_block)
