Skip to content

Commit ffa24aa

Browse files
authored
Clarify base64.a85encode docs: *wrapcols* doesn't count the newline (GH-119409)
1 parent e94dbe4 commit ffa24aa

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
@@ -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)