<s> """<STR_LIT>""" <EOL> from whoosh . compat import string_type <EOL> class QueryParserError ( Exception ) : <EOL> def __init__ ( self , cause , msg = None ) : <EOL> super ( QueryParserError , self ) . __init__ ( str ( cause ) ) <EOL> self . cause = cause <EOL> def get_single_text ( field , text , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> for t in field . process_text ( text , mode = "<STR_LIT>" , ** kwargs ) : <EOL> return t <EOL> def attach ( q , stxnode ) : <EOL> if q : <EOL> q . startchar = stxnode . startchar <EOL> q . endchar = stxnode . endchar <EOL> return q <EOL> def print_debug ( level , msg ) : <EOL> if level : <EOL> print ( "<STR_LIT:U+0020>" * ( level - <NUM_LIT:1> ) , msg ) </s>
