diff options
author | drebs <drebs@leap.se> | 2013-04-09 10:09:38 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-04-09 10:09:38 -0300 |
commit | a8adbad77d34c66eda2a79e19b9afbc0f3d471a6 (patch) | |
tree | 5082c213fb1bea9c12746c294f019623af6353d9 /src/leap/soledad/util.py | |
parent | e6ca75a9e2a7a634f92ae54238df7d86100fbdab (diff) |
Eliminate the use of super() in main code.
Tests inherited from u1db still use super, but that can be changed in the
future.
Diffstat (limited to 'src/leap/soledad/util.py')
-rw-r--r-- | src/leap/soledad/util.py | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/src/leap/soledad/util.py b/src/leap/soledad/util.py index 47e4c78d..90797501 100644 --- a/src/leap/soledad/util.py +++ b/src/leap/soledad/util.py @@ -106,12 +106,9 @@ class GPGWrapper(gnupg.GPG): @raise: RuntimeError with explanation message if there is a problem invoking gpg. """ - super(GPGWrapper, self).__init__(gnupghome=gnupghome, - gpgbinary=gpgbinary, - verbose=verbose, - use_agent=use_agent, - keyring=keyring, - options=options) + gnupg.GPG.__init__(self, gnupghome=gnupghome, gpgbinary=gpgbinary, + verbose=verbose, use_agent=use_agent, + keyring=keyring, options=options) self.result_map['list-packets'] = ListPackets def find_key_by_email(self, email, secret=False): @@ -211,11 +208,11 @@ class GPGWrapper(gnupg.GPG): @rtype: gnupg.Crypt """ # TODO: devise a way so we don't need to "always trust". - return super(GPGWrapper, self).encrypt(data, recipient, sign=sign, - always_trust=always_trust, - passphrase=passphrase, - symmetric=symmetric, - cipher_algo='AES256') + return gnupg.GPG.encrypt(self, data, recipient, sign=sign, + always_trust=always_trust, + passphrase=passphrase, + symmetric=symmetric, + cipher_algo='AES256') def decrypt(self, data, always_trust=True, passphrase=None): """ @@ -234,9 +231,8 @@ class GPGWrapper(gnupg.GPG): @rtype: gnupg.Crypt """ # TODO: devise a way so we don't need to "always trust". - return super(GPGWrapper, self).decrypt(data, - always_trust=always_trust, - passphrase=passphrase) + return gnupg.GPG.decrypt(self, data, always_trust=always_trust, + passphrase=passphrase) def send_keys(self, keyserver, *keyids): """ |