#NEWLINE# def _known_types( self , config ) : #NEWLINE# #INDENT# msg = 'The config entry %r in section %r is of type %r, which does not match the expected type %r.' #NEWLINE# for ( section , conf ) in config . items ( ) : #NEWLINE# #INDENT# if isinstance ( conf , dict ) : #NEWLINE# #INDENT# for ( k , v ) in conf . items ( ) : #NEWLINE# #INDENT# if ( v is not None ) : #NEWLINE# #INDENT# expected_type = self . known_config_types . get ( k , None ) #NEWLINE# vtype = type ( v ) #NEWLINE# if ( expected_type and ( vtype != expected_type ) ) : #NEWLINE# #INDENT# warnings . warn ( ( msg % ( k , section , vtype . __name__ , expected_type . __name__ ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# ( k , v ) = ( section , conf ) #NEWLINE# if ( v is not None ) : #NEWLINE# #INDENT# expected_type = self . known_config_types . get ( k , None ) #NEWLINE# vtype = type ( v ) #NEWLINE# if ( expected_type and ( vtype != expected_type ) ) : #NEWLINE# #INDENT# warnings . warn ( ( msg % ( k , section , vtype . __name__ , expected_type . __name__ ) ) )