@@ -20,8 +20,6 @@ from collections import namedtuple
|
|||||||
|
|
||||||
import gnupg
|
import gnupg
|
||||||
|
|
||||||
from gajim.common import app
|
|
||||||
|
|
||||||
from openpgp.modules.util import DecryptionFailed
|
from openpgp.modules.util import DecryptionFailed
|
||||||
|
|
||||||
log = logging.getLogger('gajim.p.openpgp.pygnupg')
|
log = logging.getLogger('gajim.p.openpgp.pygnupg')
|
||||||
@@ -32,7 +30,7 @@ KeyringItem = namedtuple('KeyringItem', 'jid keyid fingerprint')
|
|||||||
class PGPContext(gnupg.GPG):
|
class PGPContext(gnupg.GPG):
|
||||||
def __init__(self, jid, gnupghome):
|
def __init__(self, jid, gnupghome):
|
||||||
gnupg.GPG.__init__(
|
gnupg.GPG.__init__(
|
||||||
self, gpgbinary=app.get_gpg_binary(), gnupghome=str(gnupghome))
|
self, gpgbinary='gpg', gnupghome=str(gnupghome))
|
||||||
|
|
||||||
self._passphrase = 'gajimopenpgppassphrase'
|
self._passphrase = 'gajimopenpgppassphrase'
|
||||||
self._jid = jid.getBare()
|
self._jid = jid.getBare()
|
||||||
|
|||||||
Reference in New Issue
Block a user