Whitespace normalization.

This commit is contained in:
Tim Peters 2001-10-04 05:36:56 +00:00
parent 2f93e28a19
commit 527e64fd68
18 changed files with 65 additions and 65 deletions

View file

@ -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."""