tools/metrics/common/etree_util.py
def ParseXMLString(raw_xml):
  """Parses raw_xml and returns an ElementTree node that includes comments."""
  if sys.version_info.major == 2:
    return ET.fromstring(raw_xml.encode('utf-8'), _CommentedXMLParser())
  else:
    return ET.fromstring(
        raw_xml, ET.XMLParser(target=ET.TreeBuilder(insert_comments=True)))
Parses raw_xml and returns an ElementTree node that includes comments.
Parses raw_xml and returns an ElementTree node that includes comments.
Parses raw_xml and returns an ElementTree node that includes comments .
def ParseXMLString(raw_xml):
  if sys.version_info.major == 2:
    return ET.fromstring(raw_xml.encode('utf-8'), _CommentedXMLParser())
  else:
    return ET.fromstring(
        raw_xml, ET.XMLParser(target=ET.TreeBuilder(insert_comments=True)))
def ParseXMLString ( raw_xml ) : if sys . version_info . major == 2 : return ET . fromstring ( raw_xml . encode ( 'utf-8' ) , _CommentedXMLParser ( ) ) else : return ET . fromstring ( raw_xml , ET . XMLParser ( target = ET . TreeBuilder ( insert_comments = True ) ) )
Parses raw_xml and returns an ElementTree node that includes comments.
Parses raw_xml and returns an ElementTree node that includes comments .
"""Parses raw_xml and returns an ElementTree node that includes comments."""
raw_xml