Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(85979)

Unified Diff: Doc/library/binascii.rst

Issue 25357: Add an optional newline parameter to binascii.b2a_base64() to not add a newline
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/base64.py » ('j') | Modules/binascii.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/library/binascii.rst Fri Oct 09 13:10:05 2015 +0200
+++ b/Doc/library/binascii.rst Fri Oct 09 19:05:11 2015 +0200
@@ -52,11 +52,12 @@ The :mod:`binascii` module defines the f
than one line may be passed at a time.
-.. function:: b2a_base64(data)
+.. function:: b2a_base64(data, \*, newline=True)
Convert binary data to a line of ASCII characters in base64 coding. The return
- value is the converted line, including a newline char. The length of *data*
- should be at most 57 to adhere to the base64 standard.
+ value is the converted line, including a newline char if *newline* is
+ true. The length of *data* should be at most 57 to adhere to the
+ base64 standard.
Martin Panter 2015/10/10 06:00:10 .. versionchanged:: 3.6 Added the *newline* par
haypo 2015/10/11 11:01:59 Done.
.. function:: a2b_qp(data, header=False)
« no previous file with comments | « no previous file | Lib/base64.py » ('j') | Modules/binascii.c » ('J')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+