components/exo/wayland/fuzzer/wayland_utils.py
def GetDocumentation(element):
  """Return this element's documentation as a list of strings.

  Args:
    element: the xml.etree.ElementTree node you want the documentation for.

  Returns:
    A list of strings, containing the data from this node's "summary" attribute,
    or its "description" subelement.
  """
  doc = element.find('description')
  if doc is None:
    summary = element.get('summary')
    return [summary] if summary is not None else []
  ret = [doc.get('summary')]
  if doc.text:
    ret += [l.strip() for l in doc.text.split('\n')]
    # Remove blank lines from the tail only.
    while not ret[-1]:
      ret.pop()
  return ret
Return this element's documentation as a list of strings.

  Args:
    element: the xml.etree.ElementTree node you want the documentation for.

  Returns:
    A list of strings, containing the data from this node's "summary" attribute,
    or its "description" subelement.
  
Return this element's documentation as a list of strings.
Return this element ' s documentation as a list of strings .
def GetDocumentation(element):
  doc = element.find('description')
  if doc is None:
    summary = element.get('summary')
    return [summary] if summary is not None else []
  ret = [doc.get('summary')]
  if doc.text:
    ret += [l.strip() for l in doc.text.split('\n')]
    while not ret[-1]:
      ret.pop()
  return ret
def GetDocumentation ( element ) : doc = element . find ( 'description' ) if doc is None : summary = element . get ( 'summary' ) return [ summary ] if summary is not None else [ ] ret = [ doc . get ( 'summary' ) ] if doc . text : ret += [ l . strip ( ) for l in doc . text . split ( '\n' ) ] while not ret [ - 1 ] : ret . pop ( ) return ret
Return this element's documentation as a list of strings.
Return this element ' s documentation as a list of strings .
"""Return this element's documentation as a list of strings.

  Args:
    element: the xml.etree.ElementTree node you want the documentation for.

  Returns:
    A list of strings, containing the data from this node's "summary" attribute,
    or its "description" subelement.
  """ # Remove blank lines from the tail only.
A list of strings, containing the data from this node's "summary" attribute,
or its "description" subelement.
A list of strings containing the data from this node ' s " summary " attribute or its " description " subelement .
element
the xml.etree.ElementTree node you want the documentation for.
the xml . etree . ElementTree node you want the documentation for .