'Requires:
line --just for consistency
Returns:
nothing
Logic:
change the state.
get rid of the last {} in the cell list
figure out the number of cells based on the self.__row_dict[widths]
(\'122, 122\')'

def __end_row_def_func(self, line):

    if (len(self.__state) > 0):
        if (self.__state[(-1)] == 'in_row_def'):
            self.__state.pop()
    self.__cell_list.pop()
    widths = self.__row_dict.get('widths')
    if widths:
        width_list = widths.split(',')
        num_cells = len(width_list)
        self.__row_dict['number-of-cells'] = num_cells
