<<<<<<< SEARCH
        if not host:
=======
        if host and host.startswith((".", "*")):
            raise InvalidURL("URL has an invalid label.")

        if not host:
>>>>>>> REPLACE