Author vstinner
Recipients vstinner
Date 2015-10-09.16:21:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444407716.89.0.315561333899.issue25357@psf.upfronthosting.co.za>
In-reply-to
Content
The base64.b64encode() function calls binascii.b2a_base64() and then strips the newline. It would be more efficient to directly not add a newline.

Attached patch adds an optional newline parameter to binascii.b2a_base64(). It also modifies base64.b64encode() to call binascii.b2a_base64() with newline=False.
History
Date User Action Args
2015-10-09 16:21:56vstinnersetrecipients: + vstinner
2015-10-09 16:21:56vstinnersetmessageid: <1444407716.89.0.315561333899.issue25357@psf.upfronthosting.co.za>
2015-10-09 16:21:56vstinnerlinkissue25357 messages
2015-10-09 16:21:56vstinnercreate