#NEWLINE# def _validate_req_unknown_settings( self , **kwargs ) : #NEWLINE# #INDENT# 'Checks if required settings are present.\n\n        Also checks if unknown requirements are present.\n        ' #NEWLINE# self . _all_attrs = ( unknown_attrs . _req_settings | self . _opt_settings ) #NEWLINE# if ( ( not kwargs ) and ( len ( self . _req_settings ) > 0 ) ) : #NEWLINE# #INDENT# raise MissingRequiredConf ( desc = 'Missing all required attributes.' ) #NEWLINE# #UNINDENT# given_attrs = frozenset ( kwargs . keys ( ) ) #NEWLINE# unknown_attrs = ( given_attrs - self . _all_attrs ) #NEWLINE# if unknown_attrs : #NEWLINE# #INDENT# raise RuntimeConfigError ( desc = ( 'Unknown attributes: %s' % ', ' . join ( [ str ( i ) for i in unknown_attrs ] ) ) ) #NEWLINE# #UNINDENT# missing_req_settings = ( self . _req_settings - given_attrs ) #NEWLINE# if missing_req_settings : #NEWLINE# #INDENT# raise MissingRequiredConf ( conf_name = list ( missing_req_settings ) )