(self)
Initialize our default validations.
Initialize our default validations.
Initialize our default validations .
def __init__(self):
        """Initialize our default validations."""
        self.allowed_schemes = set()
        self.allowed_hosts = set()
        self.allowed_ports = set()
        self.allow_password = True
        self.required_components = {
            'scheme': False,
            'userinfo': False,
            'host': False,
            'port': False,
            'path': False,
            'query': False,
            'fragment': False,
        }
        self.validated_components = self.required_components.copy()
def __init__ ( self ) : self . allowed_schemes = set ( ) self . allowed_hosts = set ( ) self . allowed_ports = set ( ) self . allow_password = True self . required_components = { 'scheme' : False , 'userinfo' : False , 'host' : False , 'port' : False , 'path' : False , 'query' : False , 'fragment' : False , } self . validated_components = self . required_components . copy ( )