#NEWLINE# def validate_config( self , job_directory , name , path ) : #NEWLINE# #INDENT# config_validator = self . config_validators . get ( name , None ) #NEWLINE# valid = True #NEWLINE# if config_validator : #NEWLINE# #INDENT# contents = open ( path , 'r' , encoding = 'UTF-8' ) . read ( ) #NEWLINE# valid = config_validator . validate ( job_directory , contents ) #NEWLINE# #UNINDENT# return valid