tools/metrics/common/models.py
def GetUnexpectedChildren(node, tags):
  """Gets a set of unexpected children from |node|."""
  # Ingore text and comment nodes.
  return (set(child.nodeName for child in node.childNodes) - set(tags) - set(
      ('#comment', '#text')))
Gets a set of unexpected children from |node|.
Gets a set of unexpected children from |node|.
Gets a set of unexpected children from |node| .
def GetUnexpectedChildren(node, tags):
  return (set(child.nodeName for child in node.childNodes) - set(tags) - set(
      ('#comment', '#text')))
def GetUnexpectedChildren ( node , tags ) : return ( set ( child . nodeName for child in node . childNodes ) - set ( tags ) - set ( ( '#comment' , '#text' ) ) )
Gets a set of unexpected children from |node|.
Gets a set of unexpected children from |node| .
"""Gets a set of unexpected children from |node|.""" # Ingore text and comment nodes.
node
tags