def any_match(self, urls):
        """Check if any of the given URLs has a matching host.

        :param urls: an iterable containing URLs
        :returns: True if any host has a listed match
        :raises InvalidURLError: if there are any invalid URLs in
        the sequence
        """
        return any(urlparse(u).hostname in self for u in urls)
Check if any of the given URLs has a matching host.

        :param urls: an iterable containing URLs
        :returns: True if any host has a listed match
        :raises InvalidURLError: if there are any invalid URLs in
        the sequence