def add_links_plan(scheme, links, force_replace=False):
 links_to_add = list(links)
 links_to_remove = [conflicting_single_link(scheme, link) for link in links]
 links_to_remove = [_f for _f in links_to_remove if _f]
 if (not force_replace):
  (links_to_add, links_to_remove) = remove_duplicates(links_to_add, links_to_remove)
 return (links_to_add, links_to_remove)

def add_links_plan ( scheme , links , force_replace = False ) : links_to_add = list ( links ) links_to_remove = [ conflicting_single_link ( scheme , link ) for link in links ] links_to_remove = [ _f for _f in links_to_remove if _f ] if ( not force_replace ) : ( links_to_add , links_to_remove ) = remove_duplicates ( links_to_add , links_to_remove ) return ( links_to_add , links_to_remove )
return a plan for adding a list of links to the scheme .