[issue1466065] base64 module ignores non-alphabet characters
Neil Tallim
report at bugs.python.org
Wed Jul 29 00:36:57 CEST 2009
Neil Tallim <red.hamsterx at 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 <report at bugs.python.org>
<http://bugs.python.org/issue1466065>
_______________________________________
More information about the Python-bugs-list
mailing list