summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keymanager/src/leap/keymanager/openpgp.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/keymanager/src/leap/keymanager/openpgp.py b/keymanager/src/leap/keymanager/openpgp.py
index 5d91dc95..bbdedb23 100644
--- a/keymanager/src/leap/keymanager/openpgp.py
+++ b/keymanager/src/leap/keymanager/openpgp.py
@@ -111,14 +111,10 @@ class TempGPGWrapper(object):
# and we want to count the keys afterwards.
privids = map(lambda privkey: privkey.key_id, privkeys)
- publkeys = filter(
- lambda pubkey: pubkey.key_id not in privids, publkeys)
+ publkeys = filter(lambda pubkey: pubkey.key_id not in privids, publkeys)
- def listkeys():
- return self._gpg.list_keys()
-
- def listsecretkeys():
- return self._gpg.list_keys(secret=True)
+ listkeys = lambda: self._gpg.list_keys()
+ listsecretkeys = lambda: self._gpg.list_keys(secret=True)
self._gpg = GPG(binary=self._gpgbinary,
homedir=tempfile.mkdtemp())