(targets)
Makes sure every dependency appears only once in all targets's dependency
  lists.
Makes sure every dependency appears only once in all targets's dependency
  lists.
Makes sure every dependency appears only once in all targets s dependency lists .
def RemoveDuplicateDependencies(targets):
  """Makes sure every dependency appears only once in all targets's dependency
  lists."""
  for target_name, target_dict in targets.iteritems():
    for dependency_key in dependency_sections:
      dependencies = target_dict.get(dependency_key, [])
      if dependencies:
        target_dict[dependency_key] = Unify(dependencies)
def RemoveDuplicateDependencies ( targets ) : for target_name , target_dict in targets . iteritems ( ) : for dependency_key in dependency_sections : dependencies = target_dict . get ( dependency_key , [ ] ) if dependencies : target_dict [ dependency_key ] = Unify ( dependencies )