def GetQueryNodeTextUnicode(node):
  """Returns the unicode text from node."""
  if node.getType() == QueryParser.VALUE and len(node.children) >= 2:
    return u''.join(c.getText() for c in node.children[1:])
  elif node.getType() == QueryParser.VALUE:
    return None
  return node.getText()
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/search/query_parser.py/GetQueryNodeTextUnicode/original