#NEWLINE# def unwrap( self ) : #NEWLINE# #INDENT# response = self . _recv_sasl_message ( ) #NEWLINE# if ( response . state != 5 ) : #NEWLINE# #INDENT# raise Exception ( 'Server send non-wrapped response' ) #NEWLINE# #UNINDENT# ( ret , decoded ) = self . sasl . decode ( ret . token ) #NEWLINE# if ( not ret ) : #NEWLINE# #INDENT# raise Exception ( ( 'Cannot decode message: %s' % self . sasl . getError ( ) ) ) #NEWLINE# #UNINDENT# return response