tools/metrics/actions/extract_actions_test.py
def _ExpandSuffixesInActionsXML(self, actions_xml):
    """Parses the given actions XML, expands suffixes and pretty prints it.

    Args:
      actions_xml: actions XML string.

    Returns:
      An updated and pretty-printed actions XML string with suffixes expanded.
    """
    actions_dict, comments, suffixes = extract_actions.ParseActionFile(
        actions_xml)
    # Clear suffixes and mark actions as not coming from suffixes, so that
    # the returned XML file is the expanded one.
    suffixes = []
    for action in actions_dict.values():
      action.from_suffix = False
    return extract_actions.PrettyPrint(actions_dict, comments, suffixes)
Parses the given actions XML, expands suffixes and pretty prints it.

    Args:
      actions_xml: actions XML string.

    Returns:
      An updated and pretty-printed actions XML string with suffixes expanded.
    
Parses the given actions XML, expands suffixes and pretty prints it.
Parses the given actions XML expands suffixes and pretty prints it .
def _ExpandSuffixesInActionsXML(self, actions_xml):
    actions_dict, comments, suffixes = extract_actions.ParseActionFile(
        actions_xml)
    suffixes = []
    for action in actions_dict.values():
      action.from_suffix = False
    return extract_actions.PrettyPrint(actions_dict, comments, suffixes)
def _ExpandSuffixesInActionsXML ( self , actions_xml ) : actions_dict , comments , suffixes = extract_actions . ParseActionFile ( actions_xml ) suffixes = [ ] for action in actions_dict . values ( ) : action . from_suffix = False return extract_actions . PrettyPrint ( actions_dict , comments , suffixes )
Parses the given actions XML, expands suffixes and pretty prints it.
Parses the given actions XML expands suffixes and pretty prints it .
"""Parses the given actions XML, expands suffixes and pretty prints it.

    Args:
      actions_xml: actions XML string.

    Returns:
      An updated and pretty-printed actions XML string with suffixes expanded.
    """ # Clear suffixes and mark actions as not coming from suffixes, so that # the returned XML file is the expanded one.
An updated and pretty-printed actions XML string with suffixes expanded.
An updated and pretty - printed actions XML string with suffixes expanded .
self
actions_xml
actions XML string.
actions XML string .