Skip to content

Commit cc8586a

Browse files
[3.13] Clarify base64.a85encode docs: *wrapcols* doesn't count the newline (GH-119409) (GH-119483)
Clarify base64.a85encode docs: *wrapcols* doesn't count the newline (GH-119409) (cherry picked from commit ffa24aa) Co-authored-by: Petr Viktorin <[email protected]>
1 parent 47fb0f8 commit cc8586a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/base64.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ The modern interface provides:
193193

194194
*wrapcol* controls whether the output should have newline (``b'\n'``)
195195
characters added to it. If this is non-zero, each output line will be
196-
at most this many characters long.
196+
at most this many characters long, excluding the trailing newline.
197197

198198
*pad* controls whether the input is padded to a multiple of 4
199199
before encoding. Note that the ``btoa`` implementation always pads.

Lib/base64.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def a85encode(b, *, foldspaces=False, wrapcol=0, pad=False, adobe=False):
332332
333333
wrapcol controls whether the output should have newline (b'\\n') characters
334334
added to it. If this is non-zero, each output line will be at most this
335-
many characters long.
335+
many characters long, excluding the trailing newline.
336336
337337
pad controls whether the input is padded to a multiple of 4 before
338338
encoding. Note that the btoa implementation always pads.

0 commit comments

Comments
 (0)