def upsert_link_set(self, link_type, link_set):
if link_set is None:<EOL><INDENT>self.links.pop(link_type, None)<EOL>return<EOL><DEDENT>links = copy.deepcopy(self.links)<EOL>links.update({link_type: link_set})<EOL>self.links = links<EOL>
Remove an item altogether by setting link_list to None.
Currently, only links can contain multiple children of the same type.
:param link_type:
:param link_set:
:return: