summaryrefslogtreecommitdiffstats
path: root/Lib/email/encoders.py
diff options
context:
space:
mode:
authorJosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com>2023-03-08 13:58:14 (GMT)
committerGitHub <noreply@github.com>2023-03-08 13:58:14 (GMT)
commitb097925858c6975c73e989226cf278cc382c0416 (patch)
tree1adce7e2f4ad49a61832067d30a4cd3a552e553b /Lib/email/encoders.py
parent401d7a7f009ca2e282b1a0d1b880dc602afd39dc (diff)
downloadcpython-b097925858c6975c73e989226cf278cc382c0416.zip
cpython-b097925858c6975c73e989226cf278cc382c0416.tar.gz
cpython-b097925858c6975c73e989226cf278cc382c0416.tar.bz2
gh-102507 Remove invisible pagebreak characters (#102531)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
Diffstat (limited to 'Lib/email/encoders.py')
-rw-r--r--Lib/email/encoders.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/email/encoders.py b/Lib/email/encoders.py
index 0a66acb..17bd1ab 100644
--- a/Lib/email/encoders.py
+++ b/Lib/email/encoders.py
@@ -16,7 +16,6 @@ from base64 import encodebytes as _bencode
from quopri import encodestring as _encodestring
-
def _qencode(s):
enc = _encodestring(s, quotetabs=True)
# Must encode spaces, which quopri.encodestring() doesn't do
@@ -34,7 +33,6 @@ def encode_base64(msg):
msg['Content-Transfer-Encoding'] = 'base64'
-
def encode_quopri(msg):
"""Encode the message's payload in quoted-printable.
@@ -46,7 +44,6 @@ 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(decode=True)
@@ -64,6 +61,5 @@ def encode_7or8bit(msg):
msg['Content-Transfer-Encoding'] = '7bit'
-
def encode_noop(msg):
"""Do nothing."""