]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-148153: Do not use assert for parameter validation in base64 (GH-148154)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 6 Apr 2026 10:47:27 +0000 (13:47 +0300)
committerGitHub <noreply@github.com>
Mon, 6 Apr 2026 10:47:27 +0000 (13:47 +0300)
commitd0e204fb1da2ba7956ec2dff6501c3374eee1d43
tree3bfb0ea7bc30c2e0553f87aa0277580111a06ea8
parenta95ee3a21d97afdbe6bd2ce4cd8343a36cd13b02
gh-148153: Do not use assert for parameter validation in base64 (GH-148154)

base64.b32encode() now always raises ValueError instead of
AssertionError for the value of map01 with invalid length.
Doc/library/base64.rst
Lib/base64.py
Lib/test/test_base64.py
Misc/NEWS.d/next/Library/2026-04-06-11-20-24.gh-issue-148153.ZtsuTl.rst [new file with mode: 0644]