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]
评论列表
文章目录