edit an existing choice, to keep the ID the same

def edit_choice(self, choice_id, text, inline_region, name=''):
        """edit an existing choice, to keep the ID the same"""
        if inline_region not in self.my_osid_object_form._my_map['choices']:
            raise IllegalState('that inline region does not exist')
        for choice in self.my_osid_object_form._my_map['choices'][inline_region]:
            if choice['id'] == choice_id:
                if choice['text'] != text:
                    choice['text'] = text
                if choice['name'] != name and name != '':
                    choice['name'] = name
                break