File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ The modern interface provides:
58
58
This allows an application to e.g. generate URL or filesystem safe Base64
59
59
strings. The default is ``None ``, for which the standard Base64 alphabet is used.
60
60
61
- Raises an :exc: `AssertionError ` if the length of *altchars * is not 2. Raises a
61
+ May assert or raise a a :exc: `ValueError ` if the length of *altchars * is not 2. Raises a
62
62
:exc: `TypeError ` if *altchars * is not a :term: `bytes-like object `.
63
63
64
64
@@ -82,7 +82,7 @@ The modern interface provides:
82
82
83
83
For more information about the strict base64 check, see :func: `binascii.a2b_base64 `
84
84
85
- Raises an :exc: `AssertionError ` if the length of *altchars * is not 2.
85
+ May assert or raise a :exc: `ValueError ` if the length of *altchars * is not 2.
86
86
87
87
.. function :: standard_b64encode(s)
88
88
You can’t perform that action at this time.
0 commit comments