diff options
author | Bruno Wagner <bwgpro@gmail.com> | 2015-08-03 17:37:09 -0300 |
---|---|---|
committer | Bruno Wagner <bwgpro@gmail.com> | 2015-08-03 17:37:09 -0300 |
commit | d12f883eed4a8205440e8a4422605be1a1cfe914 (patch) | |
tree | ba3c03bd673e001e338e46858357b051da1e841a | |
parent | 36a91016c88db83129bb718ef479927910cdfe3f (diff) |
[style] Re-added lambdas to openpgp on keymanager
-rw-r--r-- | src/leap/keymanager/openpgp.py | 10 |
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()) |