common.py 文件源码

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

项目:localstack 作者: localstack 项目源码 文件源码
def __getattr__(self, name):
        method = requests.__dict__.get(name.lower())
        if not method:
            return method

        def _wrapper(*args, **kwargs):
            if 'auth' not in kwargs:
                kwargs['auth'] = NetrcBypassAuth()
            if not self.verify_ssl and args[0].startswith('https://') and 'verify' not in kwargs:
                kwargs['verify'] = False
            return method(*args, **kwargs)
        return _wrapper


# create class-of-a-class
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号