This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author surprising42
Recipients surprising42
Date 2009-08-19.13:17:51
SpamBayes Score 1.9845977e-06
Marked as misclassified No
Message-id <1250687880.61.0.0161540410601.issue6734@psf.upfronthosting.co.za>
In-reply-to
Content
using imaplib IMAP4_SSL, would fail at login due to TypeError, implicit
conversion from bytes object to string around line 1068 involving
function "_quote".

My fix:  
def _quote(self, arg):
        #Could not implicitly convert to bytes object to string
        arg = arg.encode('utf-8') #added this line to solve problem
        arg = arg.replace(b'\\', b'\\\\')
        arg = arg.replace(b'"', b'\\"')

        return b'"' + arg + b'"'
History
Date User Action Args
2009-08-19 13:18:00surprising42setrecipients: + surprising42
2009-08-19 13:18:00surprising42setmessageid: <1250687880.61.0.0161540410601.issue6734@psf.upfronthosting.co.za>
2009-08-19 13:17:59surprising42linkissue6734 messages
2009-08-19 13:17:58surprising42create