keyring.py 文件源码

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

项目:anaconda-project 作者: Anaconda-Platform 项目源码 文件源码
def unset(env_prefix, variable):
    name = _make_username(env_prefix, variable)
    if not _use_fallback_keyring():
        try:
            keyring.delete_password("anaconda", name)
            return
        except Exception as e:
            # keyring throws a bare "RuntimeError" if it has no working backend;
            # not sure what else it can throw.
            _onetime_keyring_complain_and_disable("Exception deleting a password: " + str(e))

    # on either exception, or disabled
    if name in _fake_in_memory_keyring:
        del _fake_in_memory_keyring[name]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号