for item in match_all:
must.append("\"{}\"="{}"".format(
escape_doublequotes(item["tag"]),
escape_quotes(str(item["value"])),
))
return must
After Change
if isinstance(val, bool):
val = str(val)
elif isinstance(val, int):
val = str(val)
elif isinstance(val, str):
val = ""{}"".format(escape_quotes(val))
must.append("\"{}\"={}".format(
escape_doublequotes(condition["tag"]),