'Represent bool as \'yes\' or \'no\' instead of \'true\' or \'false\'.'

def represent_bool(self, data):

    if data:
        value = u'yes'
    else:
        value = u'no'
    return self.represent_scalar('tag:yaml.org,2002:bool', value)
