chrome/test/mini_installer/installer_test.py
def ParsePropertyFiles(directory, filenames, variable_expander):
    """Parses an array of .prop files.

    Args:
        directory: The directory where the Config file and all Property files
            reside in.
        filenames: An array of Property filenames.
        variable_expander: A variable expander used to evaluate conditions.

    Returns:
        A property dictionary created by merging all property dictionaries
        specified in the array.
    """
    current_property = {}
    for filename in filenames:
        path = os.path.join(directory, filename)
        new_property = json.load(open(path))
        if not FilterConditionalElem(new_property, 'Condition',
                                     variable_expander):
            continue
        # Remove any Condition from the property dict before merging since it
        # serves no purpose from here on out.
        if 'Condition' in new_property:
            del new_property['Condition']
        MergePropertyDictionaries(current_property, new_property)
    return current_property
Parses an array of .prop files.

    Args:
        directory: The directory where the Config file and all Property files
            reside in.
        filenames: An array of Property filenames.
        variable_expander: A variable expander used to evaluate conditions.

    Returns:
        A property dictionary created by merging all property dictionaries
        specified in the array.
    
Parses an array of .prop files.
Parses an array of . prop files .
def ParsePropertyFiles(directory, filenames, variable_expander):
    current_property = {}
    for filename in filenames:
        path = os.path.join(directory, filename)
        new_property = json.load(open(path))
        if not FilterConditionalElem(new_property, 'Condition',
                                     variable_expander):
            continue
        if 'Condition' in new_property:
            del new_property['Condition']
        MergePropertyDictionaries(current_property, new_property)
    return current_property
def ParsePropertyFiles ( directory , filenames , variable_expander ) : current_property = { } for filename in filenames : path = os . path . join ( directory , filename ) new_property = json . load ( open ( path ) ) if not FilterConditionalElem ( new_property , 'Condition' , variable_expander ) : continue if 'Condition' in new_property : del new_property [ 'Condition' ] MergePropertyDictionaries ( current_property , new_property ) return current_property
Parses an array of .prop files.
Parses an array of . prop files .
"""Parses an array of .prop files.

    Args:
        directory: The directory where the Config file and all Property files
            reside in.
        filenames: An array of Property filenames.
        variable_expander: A variable expander used to evaluate conditions.

    Returns:
        A property dictionary created by merging all property dictionaries
        specified in the array.
    """ # Remove any Condition from the property dict before merging since it # serves no purpose from here on out.
A property dictionary created by merging all property dictionaries
specified in the array.
A property dictionary created by merging all property dictionaries specified in the array .
directory
The directory where the Config file and all Property files
reside in.
The directory where the Config file and all Property files reside in .
filenames
An array of Property filenames.
An array of Property filenames .
variable_expander
A variable expander used to evaluate conditions.
A variable expander used to evaluate conditions .