#NEWLINE# def _validate_substitutions( self , substitutions , placeholders ) : #NEWLINE# #INDENT# if hasattr ( self , 'keys' ) : #NEWLINE# #INDENT# self . _validate_substitutions_dictionary ( placeholders , substitutions ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'Substitutions must be a dictionary.' )