File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
10891089rejected as encoding violations, regardless of *canonical *; previously they
10901090were silently ignored and produced no output bytes.
You can’t perform that action at this time.
0 commit comments