qingstor.py 文件源码

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

项目:qingstor-sdk-python 作者: yunify 项目源码 文件源码
def __init__(self, config):
        self.config = config
        self.client = Session()
        retries = Retry(
            total=self.config.connection_retries,
            backoff_factor=1,
            status_forcelist=[500, 502, 503, 504]
        )
        self.client.mount(
            self.config.protocol + "://", HTTPAdapter(max_retries=retries)
        )
        if hasattr(self.config, "timeout") and self.config.timeout:
            self.client.send = partial(
                self.client.send, timeout=self.config.timeout
            )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号