mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Give me back my page breaks.
This commit is contained in:
parent
a68ca35a8b
commit
e968ead1dd
12 changed files with 22 additions and 22 deletions
|
@ -8,7 +8,7 @@ import base64
|
|||
from quopri import encodestring as _encodestring
|
||||
|
||||
|
||||
|
||||
|
||||
# Helpers
|
||||
def _qencode(s):
|
||||
return _encodestring(s, quotetabs=1)
|
||||
|
@ -26,7 +26,7 @@ def _bencode(s):
|
|||
return value
|
||||
|
||||
|
||||
|
||||
|
||||
def encode_base64(msg):
|
||||
"""Encode the message's payload in Base64.
|
||||
|
||||
|
@ -38,7 +38,7 @@ def encode_base64(msg):
|
|||
msg['Content-Transfer-Encoding'] = 'base64'
|
||||
|
||||
|
||||
|
||||
|
||||
def encode_quopri(msg):
|
||||
"""Encode the message's payload in Quoted-Printable.
|
||||
|
||||
|
@ -50,7 +50,7 @@ def encode_quopri(msg):
|
|||
msg['Content-Transfer-Encoding'] = 'quoted-printable'
|
||||
|
||||
|
||||
|
||||
|
||||
def encode_7or8bit(msg):
|
||||
"""Set the Content-Transfer-Encoding: header to 7bit or 8bit."""
|
||||
orig = msg.get_payload()
|
||||
|
@ -64,6 +64,6 @@ def encode_7or8bit(msg):
|
|||
msg['Content-Transfer-Encoding'] = '7bit'
|
||||
|
||||
|
||||
|
||||
|
||||
def encode_noop(msg):
|
||||
"""Do nothing."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue