summaryrefslogtreecommitdiffstats
path: root/Lib/email/base64mime.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/base64mime.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/base64mime.py')
-rw-r--r--Lib/email/base64mime.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/email/base64mime.py b/Lib/email/base64mime.py
index a7cc373..4cdf226 100644
--- a/Lib/email/base64mime.py
+++ b/Lib/email/base64mime.py
@@ -45,7 +45,6 @@ EMPTYSTRING = ''
MISC_LEN = 7
-
# Helpers
def header_length(bytearray):
"""Return the length of s when it is encoded with base64."""
@@ -57,7 +56,6 @@ def header_length(bytearray):
return n
-
def header_encode(header_bytes, charset='iso-8859-1'):
"""Encode a single header line with Base64 encoding in a given charset.
@@ -72,7 +70,6 @@ def header_encode(header_bytes, charset='iso-8859-1'):
return '=?%s?b?%s?=' % (charset, encoded)
-
def body_encode(s, maxlinelen=76, eol=NL):
r"""Encode a string with base64.
@@ -98,7 +95,6 @@ def body_encode(s, maxlinelen=76, eol=NL):
return EMPTYSTRING.join(encvec)
-
def decode(string):
"""Decode a raw base64 string, returning a bytes object.