[issue33770] base64 throws 'incorrect padding' exception even though the string length is a multiple of 4

R. David Murray report at bugs.python.org
Mon Jun 4 18:15:34 EDT 2018


R. David Murray <rdmurray at bitdance.com> added the comment:

I always assumed that any string composed of valid base64 characters could be decoded to *something* if you added some padding characters, but apparently that was an invalid assumption.  I agree that the message is incorrect for this case.

----------
nosy: +r.david.murray
stage:  -> needs patch
type:  -> behavior
versions: +Python 2.7, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33770>
_______________________________________


More information about the Python-bugs-list mailing list