https://github.com/python/cpython/commit/747e5180c00a1ffb9896516d1cdebb548687c200
commit: 747e5180c00a1ffb9896516d1cdebb548687c200
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-08-25T15:42:55Z
summary:

[3.15] gh-155193: Fix the *canonical* decoder lists in the 3.15 What's New and 
NEWS (GH-156302) (#156370)

gh-155193: Fix the *canonical* decoder lists in the 3.15 What's New and NEWS 
(GH-156302)
(cherry picked from commit 5f31aeef60cd6397938e754e32530c25f59524ab)

Co-authored-by: Advit Arora <[email protected]>

files:
M Doc/whatsnew/3.15.rst
M Misc/NEWS.d/3.15.0b1.rst

diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst
index a2d042fbc22524a..a5bce3aced919b7 100644
--- a/Doc/whatsnew/3.15.rst
+++ b/Doc/whatsnew/3.15.rst
@@ -1001,7 +1001,7 @@ base64
 
 * Added the *canonical* parameter in
   :func:`~base64.b32decode`, :func:`~base64.b32hexdecode`,
-  :func:`~base64.b64decode`, :func:`~base64.urlsafe_b64decode`,
+  :func:`~base64.b64decode`,
   :func:`~base64.a85decode`, :func:`~base64.b85decode`, and
   :func:`~base64.z85decode`,
   to reject encodings with non-zero padding bits or other non-canonical
diff --git a/Misc/NEWS.d/3.15.0b1.rst b/Misc/NEWS.d/3.15.0b1.rst
index e0fcab0eef870fc..b53733f7b5df3bb 100644
--- a/Misc/NEWS.d/3.15.0b1.rst
+++ b/Misc/NEWS.d/3.15.0b1.rst
@@ -1081,10 +1081,10 @@ Deprecate :meth:`http.cookies.Morsel.js_output` and
 .. nonce: iHWO0v
 .. section: Library
 
-Add a *canonical* keyword-only parameter to the base16, base32, base64,
-base85, ascii85, and Z85 decoders in :mod:`base64` and :mod:`binascii`. When
-true, encodings with non-zero padding bits (base16/32/64) or non-canonical
-encodings (base85/ascii85) are rejected.  Single-character final groups in
+Add a *canonical* keyword-only parameter to the base32, base64, base85,
+ascii85, and Z85 decoders in :mod:`base64` and :mod:`binascii`. When true,
+encodings with non-zero padding bits (base32/64) or non-canonical encodings
+(base85/ascii85) are rejected.  Single-character final groups in
 :func:`binascii.a2b_ascii85` and :func:`binascii.a2b_base85` are now always
 rejected as encoding violations, regardless of *canonical*; previously they
 were silently ignored and produced no output bytes.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to