New submission from Alessandro Piccione: str.encode() with 'base64' as argument add a trailing new line character to the returned string. This is the difference from base64.b64encode(str) (that is used internally).
This is not documented in str.encode() http://docs.python.org/2/library/stdtypes.html?highlight=encode#str.encode Instead it is perfectly documented for base64.encodestring() http://docs.python.org/2/library/base64.html#base64.encodestring ---------- messages: 186734 nosy: alex.75 priority: normal severity: normal status: open title: str.encode('base64') add trailing new line character is not documented versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17714> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com