tools/metrics/histograms/histogram_ownership.py
def main():
  """Prints the owners of histograms in a specific file or of all histograms.

  Args:
    argv[1]: Optional argument that is the relative path to a specific
        histograms.xml.

  Example usage to print owners of metadata/Accessibility/histograms.xml:
    python histogram_ownership.py metadata/Accessibility/histograms.xml

  Example usage to print owners of all histograms:
    python histogram_ownership.py
  """
  if len(sys.argv) == 1:
    merged_xml_string = merge_xml.MergeFiles(
        histogram_paths.ALL_XMLS, should_expand_owners=True).toxml()
    root = ET.fromstring(merged_xml_string)
  else:
    rel_path = path_util.GetInputFile(
        os.path.join('tools', 'metrics', 'histograms', sys.argv[1]))
    if not os.path.exists(rel_path):
      raise ValueError("A histograms.xml file does not exist in %s" % rel_path)

    tree = ET.parse(rel_path)
    root = tree.getroot()

  PrintOwners(root)
Prints the owners of histograms in a specific file or of all histograms.

  Args:
    argv[1]: Optional argument that is the relative path to a specific
        histograms.xml.

  Example usage to print owners of metadata/Accessibility/histograms.xml:
    python histogram_ownership.py metadata/Accessibility/histograms.xml

  Example usage to print owners of all histograms:
    python histogram_ownership.py
  
Prints the owners of histograms in a specific file or of all histograms.
Prints the owners of histograms in a specific file or of all histograms .
def main():
  if len(sys.argv) == 1:
    merged_xml_string = merge_xml.MergeFiles(
        histogram_paths.ALL_XMLS, should_expand_owners=True).toxml()
    root = ET.fromstring(merged_xml_string)
  else:
    rel_path = path_util.GetInputFile(
        os.path.join('tools', 'metrics', 'histograms', sys.argv[1]))
    if not os.path.exists(rel_path):
      raise ValueError("A histograms.xml file does not exist in %s" % rel_path)
    tree = ET.parse(rel_path)
    root = tree.getroot()
  PrintOwners(root)
def main ( ) : if len ( sys . argv ) == 1 : merged_xml_string = merge_xml . MergeFiles ( histogram_paths . ALL_XMLS , should_expand_owners = True ) . toxml ( ) root = ET . fromstring ( merged_xml_string ) else : rel_path = path_util . GetInputFile ( os . path . join ( 'tools' , 'metrics' , 'histograms' , sys . argv [ 1 ] ) ) if not os . path . exists ( rel_path ) : raise ValueError ( "A histograms.xml file does not exist in %s" % rel_path ) tree = ET . parse ( rel_path ) root = tree . getroot ( ) PrintOwners ( root )
Prints the owners of histograms in a specific file or of all histograms.
Prints the owners of histograms in a specific file or of all histograms .
"""Prints the owners of histograms in a specific file or of all histograms.

  Args:
    argv[1]: Optional argument that is the relative path to a specific
        histograms.xml.

  Example usage to print owners of metadata/Accessibility/histograms.xml:
    python histogram_ownership.py metadata/Accessibility/histograms.xml

  Example usage to print owners of all histograms:
    python histogram_ownership.py
  """
argv[1]
Optional argument that is the relative path to a specific
histograms.xml.
Optional argument that is the relative path to a specific histograms . xml .