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

Delta Between Two Patch Sets: Doc/library/binascii.rst

Issue 25357: Add an optional newline parameter to binascii.b2a_base64() to not add a newline
Left Patch Set: Created 4 years ago
Right Patch Set: Created 4 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Lib/base64.py » ('j') | Modules/binascii.c » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 :mod:`binascii` --- Convert between binary and ASCII 1 :mod:`binascii` --- Convert between binary and ASCII
2 ==================================================== 2 ====================================================
3 3
4 .. module:: binascii 4 .. module:: binascii
5 :synopsis: Tools for converting between binary and various ASCII-encoded bina ry 5 :synopsis: Tools for converting between binary and various ASCII-encoded bina ry
6 representations. 6 representations.
7 7
8 8
9 .. index:: 9 .. index::
10 module: uu 10 module: uu
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 .. function:: a2b_base64(string) 49 .. function:: a2b_base64(string)
50 50
51 Convert a block of base64 data back to binary and return the binary data. Mor e 51 Convert a block of base64 data back to binary and return the binary data. Mor e
52 than one line may be passed at a time. 52 than one line may be passed at a time.
53 53
54 54
55 .. function:: b2a_base64(data, \*, newline=True) 55 .. function:: b2a_base64(data, \*, newline=True)
56 56
57 Convert binary data to a line of ASCII characters in base64 coding. The retur n 57 Convert binary data to a line of ASCII characters in base64 coding. The retur n
58 value is the converted line, including a newline char if *newline* is 58 value is the converted line, including a newline char if *newline* is
storchaka 2015/10/09 18:35:27 "is true", without title case and highlighting. So
haypo 2015/10/11 11:01:59 Done.
59 :const:`True`. The length of *data* should be at most 57 to adhere to the 59 true. The length of *data* should be at most 57 to adhere to the
60 base64 standard. 60 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.
61 61
62 62
63 .. function:: a2b_qp(data, header=False) 63 .. function:: a2b_qp(data, header=False)
64 64
65 Convert a block of quoted-printable data back to binary and return the binary 65 Convert a block of quoted-printable data back to binary and return the binary
66 data. More than one line may be passed at a time. If the optional argument 66 data. More than one line may be passed at a time. If the optional argument
67 *header* is present and true, underscores will be decoded as spaces. 67 *header* is present and true, underscores will be decoded as spaces.
68 68
69 69
70 .. function:: b2a_qp(data, quotetabs=False, istext=True, header=False) 70 .. function:: b2a_qp(data, quotetabs=False, istext=True, header=False)
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 Support for base64 encoding used in MIME email messages. 172 Support for base64 encoding used in MIME email messages.
173 173
174 Module :mod:`binhex` 174 Module :mod:`binhex`
175 Support for the binhex format used on the Macintosh. 175 Support for the binhex format used on the Macintosh.
176 176
177 Module :mod:`uu` 177 Module :mod:`uu`
178 Support for UU encoding used on Unix. 178 Support for UU encoding used on Unix.
179 179
180 Module :mod:`quopri` 180 Module :mod:`quopri`
181 Support for quoted-printable encoding used in MIME email messages. 181 Support for quoted-printable encoding used in MIME email messages.
LEFTRIGHT
« no previous file | Lib/base64.py » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

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