[issue4329] base64 does not properly handle unicode strings

Michael Becker report at bugs.python.org
Wed Nov 26 17:50:24 CET 2008


Michael Becker <spammb at gmail.com> added the comment:

Terry,
I had a feeling Django had something to do with this. I'll have a closer
look there. For reference, in my django code, I did not explicitly
declare the string as a unicode string. Django must be importing
unicode_literals from __future__ as you suggested. I'll have a closer
look there. 

Just out of curiosity, would the 2to3 tool have resolved this issue come
3.0? Would it have change the type to a bytes? Or, would this issue need
to be caught in unit tests?

Thanks!

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4329>
_______________________________________


More information about the Python-bugs-list mailing list