Skip to content

Commit 5f31aee

Browse files
authored
gh-155193: Fix the *canonical* decoder lists in the 3.15 What's New and NEWS (#156302)
1 parent 2736620 commit 5f31aee

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ base64
10091009

10101010
* Added the *canonical* parameter in
10111011
:func:`~base64.b32decode`, :func:`~base64.b32hexdecode`,
1012-
:func:`~base64.b64decode`, :func:`~base64.urlsafe_b64decode`,
1012+
:func:`~base64.b64decode`,
10131013
:func:`~base64.a85decode`, :func:`~base64.b85decode`, and
10141014
:func:`~base64.z85decode`,
10151015
to reject encodings with non-zero padding bits or other non-canonical

Misc/NEWS.d/3.15.0b1.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,10 +1081,10 @@ Deprecate :meth:`http.cookies.Morsel.js_output` and
10811081
.. nonce: iHWO0v
10821082
.. section: Library
10831083
1084-
Add a *canonical* keyword-only parameter to the base16, base32, base64,
1085-
base85, ascii85, and Z85 decoders in :mod:`base64` and :mod:`binascii`. When
1086-
true, encodings with non-zero padding bits (base16/32/64) or non-canonical
1087-
encodings (base85/ascii85) are rejected. Single-character final groups in
1084+
Add a *canonical* keyword-only parameter to the base32, base64, base85,
1085+
ascii85, and Z85 decoders in :mod:`base64` and :mod:`binascii`. When true,
1086+
encodings with non-zero padding bits (base32/64) or non-canonical encodings
1087+
(base85/ascii85) are rejected. Single-character final groups in
10881088
:func:`binascii.a2b_ascii85` and :func:`binascii.a2b_base85` are now always
10891089
rejected as encoding violations, regardless of *canonical*; previously they
10901090
were silently ignored and produced no output bytes.

0 commit comments

Comments
 (0)