[issue4769] b64decode should accept strings or bytes
STINNER Victor
report at bugs.python.org
Wed May 26 00:08:57 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Accept unicode string is not "pure", but I agree that it's convinient. Here is a patch:
* base64.b(16|32|64)encode and b64.encodebytes accept unicode string
* unicode is first encoded to utf-8 to get a byte string
* Update the docstrings and the documentation
* Fix tests
----------
Added file: http://bugs.python.org/file17463/base64_str.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4769>
_______________________________________
More information about the Python-bugs-list
mailing list