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
commitd12f883eed4a8205440e8a4422605be1a1cfe914 (patch)
treeba3c03bd673e001e338e46858357b051da1e841a
parent36a91016c88db83129bb718ef479927910cdfe3f (diff)
[style] Re-added lambdas to openpgp on keymanager
-rw-r--r--src/leap/keymanager/openpgp.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/leap/keymanager/openpgp.py b/src/leap/keymanager/openpgp.py
index 5d91dc95..bbdedb23 100644
--- a/src/leap/keymanager/openpgp.py
+++ b/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())