def process_request(self, request, spider):
        # ignore if proxy is already seted
        if 'proxy' in request.meta:
            return

        parsed = urlparse_cached(request)
        scheme = parsed.scheme

        # 'no_proxy' is only supported by http schemes
        if scheme in ('http', 'https') and proxy_bypass(parsed.hostname):
            return

        if self.proxies in scheme:
            self._set_proxy(request, scheme)
dataset/ETHPy150Open wcong/ants/ants/contrib/downloadermiddleware/httpproxy.py/HttpProxyMiddleware.process_request/swapped operands of `in`