(self, require=False)
return validators.authority_is_valid(
            self.authority,
            host=self.host,
            require=require,
        )
Determine if the authority component is valid.

        .. deprecated:: 1.1.0

            Use the :class:`~rfc3986.validators.Validator` object instead.

        :param bool require:
            Set to ``True`` to require the presence of this component.
        :returns:
            ``True`` if the authority is valid. ``False`` otherwise.
        :rtype:
            bool
Determine if the authority component is valid.
Determine if the authority component is valid .
def authority_is_valid(self, require=False):
        """Determine if the authority component is valid.

        .. deprecated:: 1.1.0

            Use the :class:`~rfc3986.validators.Validator` object instead.

        :param bool require:
            Set to ``True`` to require the presence of this component.
        :returns:
            ``True`` if the authority is valid. ``False`` otherwise.
        :rtype:
            bool
        """
        warnings.warn("Please use rfc3986.validators.Validator instead. "
                      "This method will be eventually removed.",
                      DeprecationWarning)
        try:
            self.authority_info()
        except exc.InvalidAuthority:
            return False

        return validators.authority_is_valid(
            self.authority,
            host=self.host,
            require=require,
        )
def authority_is_valid ( self , require = False ) : warnings . warn ( "Please use rfc3986.validators.Validator instead. " "This method will be eventually removed." , DeprecationWarning ) try : self . authority_info ( ) except exc . InvalidAuthority : return False return validators . authority_is_valid ( self . authority , host = self . host , require = require , )