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 2.7, r74246. TypeError was preserved over ValueError, despite the lack of related logic, for legacy purposes. ---------- keywords: +patch nosy: +Red HamsterX, ajaksu2 Added file: http://bugs.python.org/file14586/1466065[2.7].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