testing/merge_scripts/results_merger.py
def merge_value(source, dest, key, merge_func):
  """ Merges a value from source to dest.

  The value is deleted from source.

  Args:
    source: A dictionary from which to pull a value, identified by key.
    dest: The dictionary into to which the value is to be merged.
    key: The key which identifies the value to be merged.
    merge_func(src, dst): A function which merges its src into dst,
        and returns the result. May modify dst. May raise a MergeException.

  Raises:
    MergeException if the values can not be merged.
  """
  try:
    dest[key] = merge_func(source[key], dest[key])
  except MergeException as e:
    e.message = "MergeFailure for %s\n%s" % (key, e.message)
    e.args = tuple([e.message] + list(e.args[1:]))
    raise
  del source[key]
 Merges a value from source to dest.

  The value is deleted from source.

  Args:
    source: A dictionary from which to pull a value, identified by key.
    dest: The dictionary into to which the value is to be merged.
    key: The key which identifies the value to be merged.
    merge_func(src, dst): A function which merges its src into dst,
        and returns the result. May modify dst. May raise a MergeException.

  Raises:
    MergeException if the values can not be merged.
  
Merges a value from source to dest.
The value is deleted from source.

A dictionary from which to pull a value, identified by key.
dest: The dictionary into to which the value is to be merged.
key: The key which identifies the value to be merged.
merge_func(src, dst): A function which merges its src into dst,
and returns the result. May modify dst. May raise a MergeException.

MergeException if the values can not be merged.
Merges a value from source to dest . The value is deleted from source . A dictionary from which to pull a value identified by key . dest : The dictionary into to which the value is to be merged . key : The key which identifies the value to be merged . merge_func ( src dst ) : A function which merges its src into dst and returns the result . May modify dst . May raise a MergeException . MergeException if the values can not be merged .
def merge_value(source, dest, key, merge_func):
  try:
    dest[key] = merge_func(source[key], dest[key])
  except MergeException as e:
    e.message = "MergeFailure for %s\n%s" % (key, e.message)
    e.args = tuple([e.message] + list(e.args[1:]))
    raise
  del source[key]
def merge_value ( source , dest , key , merge_func ) : try : dest [ key ] = merge_func ( source [ key ] , dest [ key ] ) except MergeException as e : e . message = "MergeFailure for %s\n%s" % ( key , e . message ) e . args = tuple ( [ e . message ] + list ( e . args [ 1 : ] ) ) raise del source [ key ]
Merges a value from source to dest.
Merges a value from source to dest .
""" Merges a value from source to dest.

  The value is deleted from source.

  Args:
    source: A dictionary from which to pull a value, identified by key.
    dest: The dictionary into to which the value is to be merged.
    key: The key which identifies the value to be merged.
    merge_func(src, dst): A function which merges its src into dst,
        and returns the result. May modify dst. May raise a MergeException.

  Raises:
    MergeException if the values can not be merged.
  """
source
dest
key
merge_func