From 3d3e66fbb202fdc409bab54b13afa37e30ba8117 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Wed, 21 Sep 2016 03:52:21 +0200 Subject: [PATCH] ensure logs are in bytes for PLAIN authentication Signed-off-by: Nicolas Sebrecht --- offlineimap/imapserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index 8a224a6..565e01b 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -221,7 +221,7 @@ class IMAPServer(object): # in UTF-8. NULL = b'\x00' retval = NULL.join((authz, authc, passwd)) - logsafe_retval = NULL.join((authz, authc, "(passwd hidden for log)")) + logsafe_retval = NULL.join((authz, authc, b'(passwd hidden for log)')) self.ui.debug('imap', '__plainhandler: returning %s'% logsafe_retval) return retval