Neil Tallim <red.hamst...@gmail.com> added the comment: Attached a patch that modifies Modules/binascii.c to raise a TypeError on any unrecognized base64 input, rather than failing silently. Also includes unit tests.
Patch built against Python 3.2, r74246. TypeError was preserved over ValueError, despite the lack of related logic, for legacy purposes. ---------- Added file: http://bugs.python.org/file14587/1466065[3.2].diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1466065> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com