mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-30103: Allow Uuencode in Python using backtick as zero instead of space (#1326)
This commit is contained in:
parent
0360a9d015
commit
13f1f423fa
10 changed files with 137 additions and 67 deletions
|
@ -40,11 +40,14 @@ The :mod:`binascii` module defines the following functions:
|
|||
data may be followed by whitespace.
|
||||
|
||||
|
||||
.. function:: b2a_uu(data)
|
||||
.. function:: b2a_uu(data, *, backtick=False)
|
||||
|
||||
Convert binary data to a line of ASCII characters, the return value is the
|
||||
converted line, including a newline char. The length of *data* should be at most
|
||||
45.
|
||||
45. If *backtick* is true, zeros are represented by ``'`'`` instead of spaces.
|
||||
|
||||
.. versionchanged:: 3.7
|
||||
Added the *backtick* parameter.
|
||||
|
||||
|
||||
.. function:: a2b_base64(string)
|
||||
|
@ -53,7 +56,7 @@ The :mod:`binascii` module defines the following functions:
|
|||
than one line may be passed at a time.
|
||||
|
||||
|
||||
.. function:: b2a_base64(data, \*, newline=True)
|
||||
.. 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 if *newline* is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue