]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-148016: Improve "Leading padding not allowed" error in Base32 and Base64 decoders...
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 4 Apr 2026 08:37:14 +0000 (11:37 +0300)
committerGitHub <noreply@github.com>
Sat, 4 Apr 2026 08:37:14 +0000 (08:37 +0000)
commit113038f94072b2f3c9c2648711b4dab74e232e3e
tree76a12c9ae4e4566dbd1ca3ecb925c79429f60f02
parent985216ced3022cd461ba383df07884f8dcff89fa
gh-148016: Improve "Leading padding not allowed" error in Base32 and Base64 decoders (GH-148017)

It is now raised instead of "Excess padding not allowed" if all characters
preceding "=" were ignored.
Lib/test/test_binascii.py
Modules/binascii.c