summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-01-24 11:58:56 -0200
committerdrebs <drebs@leap.se>2013-01-24 11:58:56 -0200
commit2f761fea9e72554806b012c64d00fcae80e1d254 (patch)
tree74d564de2d5abd1a15c2e953598f2ce1c70a3f12 /util.py
parent67a3919aea0908db3cefca0af2a8603f576c9ae1 (diff)
Source files stick to pep8.
Diffstat (limited to 'util.py')
-rw-r--r--util.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/util.py b/util.py
index a26bff31..00625e86 100644
--- a/util.py
+++ b/util.py
@@ -2,17 +2,19 @@ import os
import gnupg
import re
+
class GPGWrapper(gnupg.GPG):
"""
This is a temporary class for handling GPG requests, and should be
replaced by a more general class used throughout the project.
"""
- GNUPG_HOME = os.environ['HOME'] + "/.config/leap/gnupg"
- GNUPG_BINARY = "/usr/bin/gpg" # this has to be changed based on OS
+ GNUPG_HOME = os.environ['HOME'] + "/.config/leap/gnupg"
+ GNUPG_BINARY = "/usr/bin/gpg" # this has to be changed based on OS
def __init__(self, gpghome=GNUPG_HOME, gpgbinary=GNUPG_BINARY):
- super(GPGWrapper, self).__init__(gnupghome=gpghome, gpgbinary=gpgbinary)
+ super(GPGWrapper, self).__init__(gnupghome=gpghome,
+ gpgbinary=gpgbinary)
def find_key(self, email):
"""
@@ -51,6 +53,3 @@ class GPGWrapper(gnupg.GPG):
logger.debug('send_keys result: %r', result.__dict__)
data.close()
return result
-
-
-