def TreeRepr(tree, depth=0):

  def _NodeRepr(node):
    text = str(node.getType())
    if node.getText():
      text = '%s: %s' % (text, node.getText())
    return text

  children = ''
  if tree.children:
    children = '\n' + '\n'.join([TreeRepr(child, depth=depth+1)
                                 for child in tree.children if child])
  return depth * '  ' + _NodeRepr(tree) + children
Remove a trigger by its handle from the reactor and from
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/search/search_util.py/TreeRepr--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_internet.py/SystemEventTestCase.removeTrigger