#NEWLINE# def prepare_query( self , data ) : #NEWLINE# #INDENT# "Complete string preparation procedure for 'query' strings.\n        (without checks for unassigned codes)\n\n        :Parameters:\n            - `data`: Unicode string to prepare.\n\n        :return: prepared string\n\n        :raise StringprepError: if the preparation fails\n        " #NEWLINE# data = self . map ( data ) #NEWLINE# if self . normalization : #NEWLINE# #INDENT# data = self . normalization ( data ) #NEWLINE# #UNINDENT# data = self . prohibit ( data ) #NEWLINE# if self . bidi : #NEWLINE# #INDENT# data = self . check_bidi ( data ) #NEWLINE# #UNINDENT# if isinstance ( data , list ) : #NEWLINE# #INDENT# data = '' . join ( data ) #NEWLINE# #UNINDENT# return data