Author etukia
Recipients docs@python, etukia, r.david.murray
Date 2012-01-03.02:59:52
SpamBayes Score 1.00992e-06
Marked as misclassified No
Message-id <1325559593.36.0.524552869569.issue13700@psf.upfronthosting.co.za>
In-reply-to
Content
File "/usr/lib/python3.1/imaplib.py", line 1257, in encode
    e = binascii.b2a_base64(t)

imaplib._Authenticator.encode() calls binascii.b2a_base64() function. In Python 2.6 that function returns a string, and in Python 3.1 it returns bytes. What is returned from b2a_base64() function is later in the encode() function concatenated with a string, with bytes that is not possible.

Should binascii.b2a_base64() return a string (2.6) or bytes (3.1)?
History
Date User Action Args
2012-01-03 02:59:53etukiasetrecipients: + etukia, r.david.murray, docs@python
2012-01-03 02:59:53etukiasetmessageid: <1325559593.36.0.524552869569.issue13700@psf.upfronthosting.co.za>
2012-01-03 02:59:52etukialinkissue13700 messages
2012-01-03 02:59:52etukiacreate