]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125346: Deprecate accepting standard Base64 alphabet when alternative alphabet...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 21 Jan 2026 07:41:58 +0000 (09:41 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Jan 2026 07:41:58 +0000 (09:41 +0200)
commit9060b4abbe475591b6230b23c2afefeff26fcca5
tree5c4e859bc9dd81d61adcc38f8ce1888ac9859d57
parent48795b6460e16dff72add0675a7bf8e1f029108e
gh-125346: Deprecate accepting standard Base64 alphabet when alternative alphabet is used (GH-141128)

Emit a warning in base64.urlsafe_b64decode() and base64.b64decode() when
the "+" or "/" characters occur in the Base64 data with alternative
alphabet if they are not the part of the alternative alphabet.

It is a DeprecationWarning in the strict mode (will be error) and
a FutureWarning in non-strict mode (will be ignored).
Doc/library/base64.rst
Doc/whatsnew/3.15.rst
Lib/base64.py
Lib/test/test_base64.py
Misc/NEWS.d/next/Library/2025-11-06-12-03-29.gh-issue-125346.7Gfpgw.rst [new file with mode: 0644]