From ef022f977f958997f3beef4e3afa0b2e573774f9 Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 4 Jul 2013 19:41:45 -0300 Subject: [PATCH] Fix list_packets() call in utilities. --- gnupg/gnupg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnupg/gnupg.py b/gnupg/gnupg.py index 8a1fbd0..4c72378 100644 --- a/gnupg/gnupg.py +++ b/gnupg/gnupg.py @@ -959,7 +959,7 @@ class GPGUtilities(object): def encrypted_to(self, raw_data): """Return the key to which raw_data is encrypted to.""" # TODO: make this support multiple keys. - result = self.list_packets(raw_data) + result = self._gpg.list_packets(raw_data) if not result.key: raise LookupError( "Content is not encrypted to a GnuPG key!") @@ -969,11 +969,11 @@ class GPGUtilities(object): return self.find_key_by_subkey(result.key) def is_encrypted_sym(self, raw_data): - result = self.list_packets(raw_data) + result = self._gpg.list_packets(raw_data) return bool(result.need_passphrase_sym) def is_encrypted_asym(self, raw_data): - result = self.list_packets(raw_data) + result = self._gpg.list_packets(raw_data) return bool(result.key) def is_encrypted(self, raw_data):