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

Side by Side 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
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:
View unified diff | Download patch
« no previous file with comments | « 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')
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 converted line, including a newline char. The length of *data* should be at m ost 45 converted line, including a newline char. The length of *data* should be at m ost
46 45. 46 45.
47 47
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) 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. The length of *data* 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 should be at most 57 to adhere to the base64 standard. 59 :const:`True`. The length of *data* should be at most 57 to adhere to the
60 base64 standard.
60 61
61 62
62 .. function:: a2b_qp(data, header=False) 63 .. function:: a2b_qp(data, header=False)
63 64
64 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
65 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
66 *header* is present and true, underscores will be decoded as spaces. 67 *header* is present and true, underscores will be decoded as spaces.
67 68
68 69
69 .. 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
171 Support for base64 encoding used in MIME email messages. 172 Support for base64 encoding used in MIME email messages.
172 173
173 Module :mod:`binhex` 174 Module :mod:`binhex`
174 Support for the binhex format used on the Macintosh. 175 Support for the binhex format used on the Macintosh.
175 176
176 Module :mod:`uu` 177 Module :mod:`uu`
177 Support for UU encoding used on Unix. 178 Support for UU encoding used on Unix.
178 179
179 Module :mod:`quopri` 180 Module :mod:`quopri`
180 Support for quoted-printable encoding used in MIME email messages. 181 Support for quoted-printable encoding used in MIME email messages.
OLDNEW
« 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+