summaryrefslogtreecommitdiff
path: root/src/leap/util/keyring_helpers.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-07-01 17:16:46 -0300
committerIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-07-02 10:51:37 -0300
commite0858fffc72379ffff818ce2d5b0a3994e6da324 (patch)
tree4b0b982fd7d1a208faa8b43848bf4734e889b793 /src/leap/util/keyring_helpers.py
parent008c65fad2fbf1e5d62c308fee46aaf1ee8c048c (diff)
Remember shouldn't be automatically set to checked
Closes #2955. Improve docstrings in keyring helpers.
Diffstat (limited to 'src/leap/util/keyring_helpers.py')
-rw-r--r--src/leap/util/keyring_helpers.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/util/keyring_helpers.py b/src/leap/util/keyring_helpers.py
index b815d385..8f354f28 100644
--- a/src/leap/util/keyring_helpers.py
+++ b/src/leap/util/keyring_helpers.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# privilege_policies.py
+# keyring_helpers.py
# Copyright (C) 2013 LEAP
#
# This program is free software: you can redistribute it and/or modify
@@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
-
+Keyring helpers.
"""
import keyring
@@ -29,7 +29,9 @@ OBSOLETE_KEYRINGS = [
def has_keyring():
"""
+ Returns whether we have an useful keyring to use.
+ :rtype: bool
"""
kr = keyring.get_keyring()
return kr is not None and kr.__class__ not in OBSOLETE_KEYRINGS