Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def valid_address(address):
    if not (valid_ipv4(address) or valid_ipv6(address)):
        raise NotValid("address")
    return True
        


src/p/y/pysaml2-2.0.0/src/saml2/response.py   pysaml2(Download)
from saml2.validate import validate_before
from saml2.validate import valid_instance
from saml2.validate import valid_address
from saml2.validate import NotValid
 
 
        if data.address:
            if not valid_address(data.address):
                return False
            # verify that I got it from the correct sender

src/p/y/pysaml2-HEAD/src/saml2/response.py   pysaml2(Download)
from saml2.validate import validate_before
from saml2.validate import valid_instance
from saml2.validate import valid_address
from saml2.validate import NotValid
 
 
        if data.address:
            if not valid_address(data.address):
                return False
                # verify that I got it from the correct sender