def _format_format_variant_value(fv_value):
    """ A separate format function to handle both boolean and strings format
    variants values.
    """
    if isinstance(fv_value, (int, bool)):
        return b'%i' % fv_value
    else:
        return b'%s' % fv_value
