Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Doc/library/base64.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ POST request.
of length 2 which specifies the alternative alphabet used instead of the
``+`` and ``/`` characters.

A :exc:`binascii.Error` exception is raised
if *s* is incorrectly padded.
A :exc:`binascii.Error` exception is raised if *s* contains incorrect padding.
When *validate* is ``False`` (the default), extra padding characters and
discontinuous padding characters (``=`` characters in the middle of the payload)
are silently ignored. When *validate* is ``True``, such incorrect padding
will result in a :exc:`binascii.Error`.

If *validate* is ``False`` (the default), characters that are neither
in the normal base-64 alphabet nor the alternative alphabet are
Expand Down
Loading