Again, _result_map is a private attribute.

feature/documentation-builds-html
Isis Lovecruft 2013-04-15 01:10:33 +00:00
parent af996b8a69
commit a17b8828c1
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 3 additions and 3 deletions

View File

@ -823,7 +823,7 @@ class GPG(object):
args = ['--symmetric']
else:
args = ['--encrypt']
if not _is_sequence(recipients):
if not util._is_list_or_tuple(recipients):
recipients = (recipients,)
for recipient in recipients:
args.append('--recipient "%s"' % recipient)
@ -837,7 +837,7 @@ class GPG(object):
args.append('--sign --default-key "%s"' % sign)
if always_trust:
args.append("--always-trust")
result = self.result_map['crypt'](self)
result = self._result_map['crypt'](self)
self._handle_io(args, file, result, passphrase=passphrase, binary=True)
logger.debug('encrypt result: %r', result.data)
return result
@ -916,7 +916,7 @@ class GPG(object):
args.append('--output "%s"' % output)
if always_trust:
args.append("--always-trust")
result = self.result_map['crypt'](self)
result = self._result_map['crypt'](self)
self._handle_io(args, file, result, passphrase, binary=True)
logger.debug('decrypt result: %r', result.data)
return result