[issue4387] binascii b2a functions accept strings (unicode) as data

Martin v. Löwis report at bugs.python.org
Sun Nov 30 14:48:31 CET 2008

Martin v. Löwis <martin at v.loewis.de> added the comment:

Here is a patches that fixes the problem.

Notice that this affects the email API; base64mime.body_encode now also
requires bytes (whereas quoprimime remains unchanged).

There are probably more functions that still incorrectly accept strings,
e.g. zlib.crc32.

keywords: +patch
nosy: +loewis
Added file: http://bugs.python.org/file12167/reqbytes.diff

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list