chrome/test/mini_installer/installer_test.py
def MergePropertyDictionaries(current_property, new_property):
    """Merges the new property dictionary into the current property dictionary.

    This is different from general dictionary merging in that, in case there are
    keys with the same name, we merge values together in the first level, and we
    override earlier values in the second level. For more details, take a look
    at http://goo.gl/uE0RoR.

    Args:
        current_property: The property dictionary to be modified.
        new_property: The new property dictionary.
    """
    for key, value in new_property.iteritems():
        if key not in current_property:
            current_property[key] = value
        else:
            assert (isinstance(current_property[key], dict)
                    and isinstance(value, dict))
            # This merges two dictionaries together. In case there are keys with
            # the same name, the latter will override the former.
            current_property[key] = dict(current_property[key].items() +
                                         value.items())
Merges the new property dictionary into the current property dictionary.

    This is different from general dictionary merging in that, in case there are
    keys with the same name, we merge values together in the first level, and we
    override earlier values in the second level. For more details, take a look
    at http://goo.gl/uE0RoR.

    Args:
        current_property: The property dictionary to be modified.
        new_property: The new property dictionary.
    
Merges the new property dictionary into the current property dictionary.
This is different from general dictionary merging in that, in case there are
keys with the same name, we merge values together in the first level, and we
override earlier values in the second level.
Merges the new property dictionary into the current property dictionary . This is different from general dictionary merging in that in case there are keys with the same name we merge values together in the first level and we override earlier values in the second level .
def MergePropertyDictionaries(current_property, new_property):
    for key, value in new_property.iteritems():
        if key not in current_property:
            current_property[key] = value
        else:
            assert (isinstance(current_property[key], dict)
                    and isinstance(value, dict))
            current_property[key] = dict(current_property[key].items() +
                                         value.items())
def MergePropertyDictionaries ( current_property , new_property ) : for key , value in new_property . iteritems ( ) : if key not in current_property : current_property [ key ] = value else : assert ( isinstance ( current_property [ key ] , dict ) and isinstance ( value , dict ) ) current_property [ key ] = dict ( current_property [ key ] . items ( ) + value . items ( ) )
Merges the new property dictionary into the current property dictionary.
Merges the new property dictionary into the current property dictionary .
"""Merges the new property dictionary into the current property dictionary.

    This is different from general dictionary merging in that, in case there are
    keys with the same name, we merge values together in the first level, and we
    override earlier values in the second level. For more details, take a look
    at http://goo.gl/uE0RoR.

    Args:
        current_property: The property dictionary to be modified.
        new_property: The new property dictionary.
    """ # This merges two dictionaries together. In case there are keys with # the same name, the latter will override the former.
current_property
The property dictionary to be modified.
The property dictionary to be modified .
new_property
The new property dictionary.
The new property dictionary .