tools/metrics/histograms/merge_xml.py
def MergeFiles(filenames=[], files=[], should_expand_owners=False):
  """Merges a list of histograms.xml files.

  Args:
    filenames: A list of histograms.xml filenames.
    files: A list of histograms.xml file-like objects.
    should_expand_owners: Whether we want to expand owners. By default, it's
      false because most of the callers don't care about the owners for each
      metadata.

  Returns:
    A merged DOM tree.
  """
  # minidom.parse() takes both files and filenames:
  all_files = files + filenames
  trees = [xml.dom.minidom.parse(f) for f in all_files]
  return MergeTrees(trees, should_expand_owners)
Merges a list of histograms.xml files.

  Args:
    filenames: A list of histograms.xml filenames.
    files: A list of histograms.xml file-like objects.
    should_expand_owners: Whether we want to expand owners. By default, it's
      false because most of the callers don't care about the owners for each
      metadata.

  Returns:
    A merged DOM tree.
  
Merges a list of histograms.xml files.
Merges a list of histograms . xml files .
def MergeFiles(filenames=[], files=[], should_expand_owners=False):
  all_files = files + filenames
  trees = [xml.dom.minidom.parse(f) for f in all_files]
  return MergeTrees(trees, should_expand_owners)
def MergeFiles ( filenames = [ ] , files = [ ] , should_expand_owners = False ) : all_files = files + filenames trees = [ xml . dom . minidom . parse ( f ) for f in all_files ] return MergeTrees ( trees , should_expand_owners )
Merges a list of histograms.xml files.
Merges a list of histograms . xml files .
"""Merges a list of histograms.xml files.

  Args:
    filenames: A list of histograms.xml filenames.
    files: A list of histograms.xml file-like objects.
    should_expand_owners: Whether we want to expand owners. By default, it's
      false because most of the callers don't care about the owners for each
      metadata.

  Returns:
    A merged DOM tree.
  """ # minidom.parse() takes both files and filenames:
A merged DOM tree.
A merged DOM tree .
filenames
A list of histograms.xml filenames.
A list of histograms . xml filenames .
files
A list of histograms.xml file-like objects.
A list of histograms . xml file - like objects .
should_expand_owners
Whether we want to expand owners. By default, it's
false because most of the callers don't care about the owners for each
metadata.
Whether we want to expand owners . By default it ' s false because most of the callers don ' t care about the owners for each metadata .