(name, value, ipv6=False)
Return True if the target is valid, False otherwise
Return True if the target is valid, False otherwise
Return True if the target is valid False otherwise
def test_target(name, value, ipv6=False):
    """ Return True if the target is valid, False otherwise """
    try:
        iptc_rule = Rule6() if ipv6 else Rule()
        _iptc_settarget(iptc_rule, {name:value})
        return True
    except:
        return False
def test_target ( name , value , ipv6 = False ) : try : iptc_rule = Rule6 ( ) if ipv6 else Rule ( ) _iptc_settarget ( iptc_rule , { name : value } ) return True except : return False