#NEWLINE# def represent_bool( self , data ) : #NEWLINE# #INDENT# "Represent bool as 'yes' or 'no' instead of 'true' or 'false'.\n        " #NEWLINE# if data : #NEWLINE# #INDENT# value = 'yes' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = 'no' #NEWLINE# #UNINDENT# return self . represent_scalar ( 'tag:yaml.org,2002:bool' , value )