Skip to content

Commit 3af9b75

Browse files
[3.12] Clarify base64.a85encode docs: *wrapcols* doesn't count the newline (GH-119409) (GH-119482)
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 5cca041 commit 3af9b75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/base64.rst

Lines changed: 1 addition & 1 deletion
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

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

0 commit comments

Comments
 (0)