''

def add_brackets(self):

    self.__initiate_values()
    with open(self.__file, 'r') as read_obj:
        with open(self.__write_to, 'w') as self.__write_obj:
            for line in read_obj:
                self.__token_info = line[:16]
                if (self.__token_info == 'ob<nu<open-brack'):
                    self.__ob_count = line[(-5):(-1)]
                if (self.__token_info == 'cb<nu<clos-brack'):
                    self.__cb_count = line[(-5):(-1)]
                action = self.__state_dict.get(self.__state)
                if (action is None):
                    sys.stderr.write(('No    matching    state    in    module    add_brackets.py\n%s\n' % self.__state))
                action(line)
    if self.__check_brackets(self.__write_to):
        copy_obj = copy.Copy(bug_handler=self.__bug_handler)
        if self.__copy:
            copy_obj.copy_file(self.__write_to, 'add_brackets.data')
        copy_obj.rename(self.__write_to, self.__file)
    elif (self.__run_level > 0):
        sys.stderr.write('Sorry,    but    this    files    has    a    mix    of    old    and    new    RTF.\nSome    characteristics    cannot    be    converted.\n')
    os.remove(self.__write_to)
