tools/metrics/histograms/pretty_print.py
def PrettyPrintEnums(raw_xml):
  """Pretty print the given enums XML."""

  root = etree_util.ParseXMLString(raw_xml)

  # Prevent accidentally adding histograms to enums.xml
  DropNodesByTagName(root, 'histograms')
  DropNodesByTagName(root, 'histogram_suffixes_list')
  top_level_content = etree_util.GetTopLevelContent(raw_xml)
  formatted_xml = histogram_configuration_model.PrettifyTree(root)
  return top_level_content + formatted_xml
Pretty print the given enums XML.
Pretty print the given enums XML.
Pretty print the given enums XML .
def PrettyPrintEnums(raw_xml):
  root = etree_util.ParseXMLString(raw_xml)
  DropNodesByTagName(root, 'histograms')
  DropNodesByTagName(root, 'histogram_suffixes_list')
  top_level_content = etree_util.GetTopLevelContent(raw_xml)
  formatted_xml = histogram_configuration_model.PrettifyTree(root)
  return top_level_content + formatted_xml
def PrettyPrintEnums ( raw_xml ) : root = etree_util . ParseXMLString ( raw_xml ) DropNodesByTagName ( root , 'histograms' ) DropNodesByTagName ( root , 'histogram_suffixes_list' ) top_level_content = etree_util . GetTopLevelContent ( raw_xml ) formatted_xml = histogram_configuration_model . PrettifyTree ( root ) return top_level_content + formatted_xml
Pretty print the given enums XML.
Pretty print the given enums XML .
"""Pretty print the given enums XML.""" # Prevent accidentally adding histograms to enums.xml
raw_xml