def filter_format(filter_template, assertion_values):
 return (filter_template % tuple(map(escape_filter_chars, assertion_values)))

def filter_format ( filter_template , assertion_values ) : return ( filter_template % tuple ( map ( escape_filter_chars , assertion_values ) ) )
filter_template string containing %s as placeholder for assertion values .