chrome/test/mini_installer/installer_test.py
def FilterConditionalElem(elem, condition_name, variable_expander):
    """Returns True if a conditional element should be processed.

    Args:
        elem: A dictionary.
        condition_name: The name of the condition property in |elem|.
        variable_expander: A variable expander used to evaluate conditions.

    Returns:
        True if |elem| should be processed.
    """
    if condition_name not in elem:
        return True
    condition = variable_expander.Expand(elem[condition_name])
    return eval(condition, {'__builtins__': {'False': False, 'True': True}})
Returns True if a conditional element should be processed.

    Args:
        elem: A dictionary.
        condition_name: The name of the condition property in |elem|.
        variable_expander: A variable expander used to evaluate conditions.

    Returns:
        True if |elem| should be processed.
    
Returns True if a conditional element should be processed.
Returns True if a conditional element should be processed .
def FilterConditionalElem(elem, condition_name, variable_expander):
    if condition_name not in elem:
        return True
    condition = variable_expander.Expand(elem[condition_name])
    return eval(condition, {'__builtins__': {'False': False, 'True': True}})
def FilterConditionalElem ( elem , condition_name , variable_expander ) : if condition_name not in elem : return True condition = variable_expander . Expand ( elem [ condition_name ] ) return eval ( condition , { '__builtins__' : { 'False' : False , 'True' : True } } )
Returns True if a conditional element should be processed.
Returns True if a conditional element should be processed .
"""Returns True if a conditional element should be processed.

    Args:
        elem: A dictionary.
        condition_name: The name of the condition property in |elem|.
        variable_expander: A variable expander used to evaluate conditions.

    Returns:
        True if |elem| should be processed.
    """
True if |elem| should be processed.
True if |elem| should be processed .
elem
None
condition_name
The name of the condition property in |elem|.
The name of the condition property in |elem| .
variable_expander
A variable expander used to evaluate conditions.
A variable expander used to evaluate conditions .