appservice.py 文件源码

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

项目:matrix-appservice-hangouts 作者: Cadair 项目源码 文件源码
def setup_cache(self):
        if not self.cache_path or not os.path.isfile(self.cache_path):
            cache = {}
        else:
            yaml = YAML()
            cache = yaml.load(open(self.cache_path, 'r'))

        if 'ho_cookies' not in cache:
            cache['ho_cookies'] = {}
        if 'admin_channels' not in cache:
            cache['admin_channels'] = {}
        if 'joined_conversations' not in cache:
            cache['joined_conversations'] = {}

        return cache
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号