'Requires:
line
Returns:
nothing
Logic:
Check if the end of the color table has been reached. If so,
change the state to after the color table.
Othewise, get a function by passing the self.__token_info to the
state dictionary.'

def __in_color_func(self, line):

    if (self.__token_info == 'mi<mk<clrtbl-end'):
        self.__state = 'after_color_table'
    else:
        action = self.__state_dict.get(self.__token_info)
        if (action is None):
            sys.stderr.write(('in    module    colors.py\nfunction    is    self.__in_color_func\nno    action    for    %s' % self.__token_info))
        action(line)
