__init__.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:SurfaceWaterTool 作者: Servir-Mekong 项目源码 文件源码
def _get_proxy_info(self, scheme, authority):
        """Return a ProxyInfo instance (or None) based on the scheme
        and authority.
        """
        hostname, port = urllib.splitport(authority)
        proxy_info = self.proxy_info
        if callable(proxy_info):
            proxy_info = proxy_info(scheme)

        if (hasattr(proxy_info, 'applies_to')
            and not proxy_info.applies_to(hostname)):
            proxy_info = None
        return proxy_info
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号