File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,8 +55,10 @@ The :mod:`binascii` module defines the following functions:
5555.. function :: b2a_base64(data)
5656
5757 Convert binary data to a line of ASCII characters in base64 coding. The return
58- value is the converted line, including a newline char. The length of *data *
59- should be at most 57 to adhere to the base64 standard.
58+ value is the converted line, including a newline char. The newline is
59+ added because the original use case for this function was to feed it a
60+ series of 57 byte input lines to get output lines that conform to the
61+ MIME-base64 standard. Otherwise the output conforms to :rfc: `3548 `.
6062
6163
6264.. function :: a2b_qp(data, header=False)
@@ -168,7 +170,8 @@ The :mod:`binascii` module defines the following functions:
168170.. seealso ::
169171
170172 Module :mod: `base64 `
171- Support for base64 encoding used in MIME email messages.
173+ Support for RFC compliant base64-style encoding in base 16, 32, 64,
174+ and 85.
172175
173176 Module :mod: `binhex `
174177 Support for the binhex format used on the Macintosh.
You can’t perform that action at this time.
0 commit comments