#NEWLINE# def __call__( self , value ) : #NEWLINE# #INDENT# value = value . strip ( ) #NEWLINE# try : #NEWLINE# #INDENT# yaml . safe_load ( self ) #NEWLINE# #UNINDENT# except yaml . error . YAMLError : #NEWLINE# #INDENT# raise ValidationError ( _ ( 'Enter a valid YAML value.' ) , code = 'invalid' )