[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

R. David Murray report at bugs.python.org
Tue Jun 5 09:30:49 EDT 2018


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

I agree, but that would be a separate enhancement PR.  The email library would use that capability if it existed...currently it adds padding in a loop trying to do the decode if it gets the invalid padding message.  Which of course is going to fail for this case.

----------

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


More information about the Python-bugs-list mailing list