[gnome-keysign: 33/75] gpgmeh: Log the repr of the gpgme.Sink
- From: Gitlab System User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 33/75] gpgmeh: Log the repr of the gpgme.Sink
- Date: Fri, 29 Sep 2017 11:25:07 +0000 (UTC)
commit 248a9a9ddc2ad9c7f4b1905df229f4d47ae6da42
Author: Tobias Mueller <muelli cryptobitch de>
Date: Sun Jul 23 12:27:16 2017 +0200
gpgmeh: Log the repr of the gpgme.Sink
It may not be a utf-8 encodable string, esp. when we have UIDs with non-
UTF-8 data.
keysign/gpgmeh.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/keysign/gpgmeh.py b/keysign/gpgmeh.py
index 056724b..a15cce6 100644
--- a/keysign/gpgmeh.py
+++ b/keysign/gpgmeh.py
@@ -379,7 +379,7 @@ def sign_keydata_and_encrypt(keydata, error_cb=None, homedir=None):
# There is op_keysign, but it's only available with gpg 2.1.12
ctx.interact(key, GenEdit(sign_key(error_cb=error_cb)).edit_cb, sink=sink)
sink.seek(0, 0)
- log.debug("Sink after signing: %s", sink.read())
+ log.debug("Sink after signing: %r", sink.read())
signed_sink = gpg.Data()
ctx.set_keylist_mode(gpg.constants.KEYLIST_MODE_SIGS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]