(rule_d, ipv6=False)
Return True if the rule is a well-formed dictionary, False otherwise
Return True if the rule is a well-formed dictionary, False otherwise
Return True if the rule is a well - formed dictionary False otherwise
def test_rule(rule_d, ipv6=False):
    """ Return True if the rule is a well-formed dictionary, False otherwise """
    try:
        encode_iptc_rule(rule_d, ipv6)
        return True
    except:
        return False
def test_rule ( rule_d , ipv6 = False ) : try : encode_iptc_rule ( rule_d , ipv6 ) return True except : return False