summaryrefslogtreecommitdiff
path: root/src/leap/keymanager/openpgp.py
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-07-24 16:24:13 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-08-03 17:16:57 -0300
commit3fab338ef4e1ae0efcfaee455ae04881aa013083 (patch)
tree6bcf55e666e2ff686e8a182d05a49c2898c9169a /src/leap/keymanager/openpgp.py
parent05d599a22ed4c31dbd09a79bd1b2e00a716614aa (diff)
[style] Fixed pep8 warnings
Fixed pep8 warnings to prepare the keymanager for CI
Diffstat (limited to 'src/leap/keymanager/openpgp.py')
-rw-r--r--src/leap/keymanager/openpgp.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/keymanager/openpgp.py b/src/leap/keymanager/openpgp.py
index 794a0ec2..5d91dc95 100644
--- a/src/leap/keymanager/openpgp.py
+++ b/src/leap/keymanager/openpgp.py
@@ -114,8 +114,11 @@ class TempGPGWrapper(object):
publkeys = filter(
lambda pubkey: pubkey.key_id not in privids, publkeys)
- listkeys = lambda: self._gpg.list_keys()
- listsecretkeys = lambda: self._gpg.list_keys(secret=True)
+ def listkeys():
+ return self._gpg.list_keys()
+
+ def listsecretkeys():
+ return self._gpg.list_keys(secret=True)
self._gpg = GPG(binary=self._gpgbinary,
homedir=tempfile.mkdtemp())