summaryrefslogtreecommitdiff
path: root/src/leap/keymanager
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-01-17 15:37:00 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-01-17 15:37:00 -0300
commitf1f9debfca03b3da1bc8c4dc4fb4eb129ab603a1 (patch)
treee4632c84e1816d307a75d65695027cb7a6c4da6d /src/leap/keymanager
parentfba576b3b4bcad5f701144736336872968b52e3b (diff)
Remove unused imports, fix typo.
Diffstat (limited to 'src/leap/keymanager')
-rw-r--r--src/leap/keymanager/openpgp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/leap/keymanager/openpgp.py b/src/leap/keymanager/openpgp.py
index 961e1ed3..950d022c 100644
--- a/src/leap/keymanager/openpgp.py
+++ b/src/leap/keymanager/openpgp.py
@@ -17,12 +17,10 @@
"""
Infrastructure for using OpenPGP keys in Key Manager.
"""
-import locale
import logging
import os
import re
import shutil
-import sys
import tempfile
from contextlib import closing
@@ -522,7 +520,7 @@ class OpenPGPScheme(EncryptionScheme):
return result.data
except errors.GPGError as e:
logger.error('Failed to decrypt: %s.' % str(e))
- raise error.EncryptError()
+ raise errors.EncryptError()
def decrypt(self, data, privkey, passphrase=None, verify=None):
"""