tools/metrics/common/models.py
def Parse(self, input_file):
    """Parses the input file, which can be minidom, ET or xml string.

    The flexibility of input is to accommodate the currently different
    representations of ukm, enums, histograms and actions in their
    respective pretty_print.py.

    Args:
      input_file: The input file can be given in the form of minidom, ET
      or xml string.

    Returns:
      An object representing the unmarshalled content of the document's root
      node.
    """
    if not isinstance(input_file, minidom.Document):
      if isinstance(input_file, ET.Element):
        input_file = ET.tostring(input_file, encoding='utf-8', method='xml')
      input_file = minidom.parseString(input_file)
    return self._ParseMinidom(input_file)
Parses the input file, which can be minidom, ET or xml string.

    The flexibility of input is to accommodate the currently different
    representations of ukm, enums, histograms and actions in their
    respective pretty_print.py.

    Args:
      input_file: The input file can be given in the form of minidom, ET
      or xml string.

    Returns:
      An object representing the unmarshalled content of the document's root
      node.
    
Parses the input file, which can be minidom, ET or xml string.
The flexibility of input is to accommodate the currently different
representations of ukm, enums, histograms and actions in their
respective pretty_print.py.

The input file can be given in the form of minidom, ET
or xml string.

An object representing the unmarshalled content of the document's root
node.
Parses the input file which can be minidom ET or xml string . The flexibility of input is to accommodate the currently different representations of ukm enums histograms and actions in their respective pretty_print . py . The input file can be given in the form of minidom ET or xml string . An object representing the unmarshalled content of the document ' s root node .
def Parse(self, input_file):
    if not isinstance(input_file, minidom.Document):
      if isinstance(input_file, ET.Element):
        input_file = ET.tostring(input_file, encoding='utf-8', method='xml')
      input_file = minidom.parseString(input_file)
    return self._ParseMinidom(input_file)
def Parse ( self , input_file ) : if not isinstance ( input_file , minidom . Document ) : if isinstance ( input_file , ET . Element ) : input_file = ET . tostring ( input_file , encoding = 'utf-8' , method = 'xml' ) input_file = minidom . parseString ( input_file ) return self . _ParseMinidom ( input_file )
Parses the input file, which can be minidom, ET or xml string.
Parses the input file which can be minidom ET or xml string .
"""Parses the input file, which can be minidom, ET or xml string.

    The flexibility of input is to accommodate the currently different
    representations of ukm, enums, histograms and actions in their
    respective pretty_print.py.

    Args:
      input_file: The input file can be given in the form of minidom, ET
      or xml string.

    Returns:
      An object representing the unmarshalled content of the document's root
      node.
    """
self
input_file