'Requires:
line --the line to parse
name --changed, readable name
Returns:
nothing
Logic:
The end of the section definition has been found. Reset the state.
Call on the write_section method.'

def __end_sec_def_func(self, line, name):

    if (not self.__in_field):
        self.__state = 'body'
    else:
        self.__state = 'sec_in_field'
    self.__write_section(line)
