tools/metrics/histograms/suffixes_to_variants.py
def _UpdateSummary(histogram, histogram_suffixes_name):
  """Appends a placeholder string to the |histogram|'s summary node."""
  summary = histogram.getElementsByTagName('summary')
  assert len(summary) == 1, 'A histogram should have a single summary node.'
  summary = summary[0]
  if summary.firstChild.nodeType != summary.TEXT_NODE:
    raise ValueError('summary_node doesn\'t contain text.')
  summary.firstChild.replaceWholeText(
      '%s {%s}' % (summary.firstChild.data.strip(), histogram_suffixes_name))
Appends a placeholder string to the |histogram|'s summary node.
Appends a placeholder string to the |histogram|'s summary node.
Appends a placeholder string to the |histogram| ' s summary node .
def _UpdateSummary(histogram, histogram_suffixes_name):
  summary = histogram.getElementsByTagName('summary')
  assert len(summary) == 1, 'A histogram should have a single summary node.'
  summary = summary[0]
  if summary.firstChild.nodeType != summary.TEXT_NODE:
    raise ValueError('summary_node doesn\'t contain text.')
  summary.firstChild.replaceWholeText(
      '%s {%s}' % (summary.firstChild.data.strip(), histogram_suffixes_name))
def _UpdateSummary ( histogram , histogram_suffixes_name ) : summary = histogram . getElementsByTagName ( 'summary' ) assert len ( summary ) == 1 , 'A histogram should have a single summary node.' summary = summary [ 0 ] if summary . firstChild . nodeType != summary . TEXT_NODE : raise ValueError ( 'summary_node doesn\'t contain text.' ) summary . firstChild . replaceWholeText ( '%s {%s}' % ( summary . firstChild . data . strip ( ) , histogram_suffixes_name ) )
Appends a placeholder string to the |histogram|'s summary node.
Appends a placeholder string to the |histogram| ' s summary node .
"""Appends a placeholder string to the |histogram|'s summary node."""
histogram
histogram_suffixes_name