Skip to content

gh-148016: Improve "Leading padding not allowed" error in Base32 and Base64 decoders#148017

Merged
serhiy-storchaka merged 2 commits intopython:mainfrom
serhiy-storchaka:base32-base64-leading-padding-error
Apr 4, 2026
Merged

gh-148016: Improve "Leading padding not allowed" error in Base32 and Base64 decoders#148017
serhiy-storchaka merged 2 commits intopython:mainfrom
serhiy-storchaka:base32-base64-leading-padding-error

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Apr 2, 2026

It is now raised instead of "Excess padding not allowed" if all characters preceding "=" were ignored.

…2 and Base64 decoders

It is now raised instead of "Excess padding not allowed" if all characters
preceding "=" were ignored.
@serhiy-storchaka
Copy link
Copy Markdown
Member Author

No NEWS entry because it is an improvement to the ignorechars feature, which is new in 3.15.

@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) April 4, 2026 08:11
@serhiy-storchaka serhiy-storchaka merged commit 113038f into python:main Apr 4, 2026
51 checks passed
@serhiy-storchaka serhiy-storchaka deleted the base32-base64-leading-padding-error branch April 4, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant