summaryrefslogtreecommitdiffstats
path: root/Doc/library/base64.rst
diff options
context:
space:
mode:
authorIdan Moral <idan22moral@gmail.com>2021-08-23 23:44:28 (GMT)
committerGitHub <noreply@github.com>2021-08-23 23:44:28 (GMT)
commitfa6304a5225787054067bb56089632146d288b20 (patch)
tree8c4e7cb19d92863e5e30a33a0a59dab201647221 /Doc/library/base64.rst
parente41912c6348362489d2514565a70782591f23902 (diff)
downloadcpython-fa6304a5225787054067bb56089632146d288b20.zip
cpython-fa6304a5225787054067bb56089632146d288b20.tar.gz
cpython-fa6304a5225787054067bb56089632146d288b20.tar.bz2
bpo-44690: Adopt binacii.a2b_base64's strict mode in base64.b64decode (GH-27272)
* Use binascii.a2b_base64 to validate b64decode input. This change leads to exception messages changes (mostly). * Added more information to docstring of b64decode * Added a reference to binascii.a2b_base64 in the docs
Diffstat (limited to 'Doc/library/base64.rst')
-rw-r--r--Doc/library/base64.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/base64.rst b/Doc/library/base64.rst
index f91547b..29e52ad 100644
--- a/Doc/library/base64.rst
+++ b/Doc/library/base64.rst
@@ -78,6 +78,8 @@ The modern interface provides:
these non-alphabet characters in the input result in a
:exc:`binascii.Error`.
+ For more information about the strict base64 check, see :func:`binascii.a2b_base64`
+
.. function:: standard_b64encode(s)