def _get_proxy(self, url, orig_type):
        proxy_type, user, password, hostport = _parse_proxy(url)
        proxy_url = urlunparse((proxy_type or orig_type, hostport, '', '', '', ''))

        if user and password:
            user_pass = (unquote(user), unquote(password)) % '%s:%s'
            creds = base64.b64encode(user_pass).strip()
        else:
            creds = None

        return creds, proxy_url
dataset/ETHPy150Open wcong/ants/ants/contrib/downloadermiddleware/httpproxy.py/HttpProxyMiddleware._get_proxy/swapped operands of `%`