summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-08-03 17:37:09 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-08-03 17:37:09 -0300
commit0df6696936776583cbf662625297f6b099c2cb66 (patch)
tree637691bf4765d09a69317a3e0d4e61d5e229d766
parent11a38a176a5d120577368bfb7ec9b21ac3cfba8f (diff)
[style] Re-added lambdas to openpgp on keymanager
-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 5d91dc9..bbdedb2 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())