mirror of
https://github.com/python/cpython.git
synced 2025-08-05 01:18:26 +00:00
Issue #16473: Fix byte transform codec documentation; test quotetabs=True
This changes the equivalent functions listed for the Base-64, hex and Quoted- Printable codecs to reflect the functions actually used. Also mention and test the "quotetabs" setting for Quoted-Printable encoding.
This commit is contained in:
parent
f9b6875259
commit
06171bd52a
3 changed files with 17 additions and 9 deletions
|
@ -11,7 +11,7 @@ def quopri_encode(input, errors='strict'):
|
|||
assert errors == 'strict'
|
||||
f = BytesIO(input)
|
||||
g = BytesIO()
|
||||
quopri.encode(f, g, 1)
|
||||
quopri.encode(f, g, quotetabs=True)
|
||||
return (g.getvalue(), len(input))
|
||||
|
||||
def quopri_decode(input, errors='strict'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue