def _construct_url(self, endpoint):
        """Return the full URL to the specified endpoint"""
        parsed_url = urlparse(self.host)
        scheme = parsed_url[0]
        host = parsed_url[1]
        # Handle host without a scheme specified (eg. www.example.com)
        if scheme == "":
            scheme = "http"
            host = self.host

        if not endpoint.startswith("/"):
            endpoint = "/" + endpoint
        if self.config["api_version"] is not None:
            endpoint = (self.config["api_version"], endpoint) % "/v%d%s"
        return urlunparse((scheme, host, endpoint, '', '', ''))
dataset/ETHPy150Open photo/openphoto-python/trovebox/http.py/Http._construct_url/swapped operands of `%`