#NEWLINE# def __validate( self ) : #NEWLINE# #INDENT# if ( self . key_format_type is not None ) : #NEWLINE# #INDENT# if ( type ( self . key_format_type ) is not KeyFormatType ) : #NEWLINE# #INDENT# member = 'KeyBlock.key_format_type' #NEWLINE# exp_type = KeyFormatType #NEWLINE# rcv_type = type ( self . key_format_type ) #NEWLINE# msg = ErrorStrings . BAD_EXP_RECV . format ( member , 'type' , exp_type , rcv_type ) #NEWLINE# raise TypeError ( msg )