def GetQueryNodeTextUnicode(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()

def GetQueryNodeTextUnicode ( 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 ( )
returns the unicode text from node .