diff options
author | Grégory Starck <g.starck@gmail.com> | 2021-03-30 08:37:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 08:37:37 (GMT) |
commit | cf35e05f89bb008d6f4553f9875e0fe87fc02406 (patch) | |
tree | 9fe5a87f0acdd3683fe6e3da7fafb5d8383568a5 /Lib/email | |
parent | dfeec347f21b86879ba8f27f567bb275b243f1bc (diff) | |
download | cpython-cf35e05f89bb008d6f4553f9875e0fe87fc02406.zip cpython-cf35e05f89bb008d6f4553f9875e0fe87fc02406.tar.gz cpython-cf35e05f89bb008d6f4553f9875e0fe87fc02406.tar.bz2 |
bpo-43125: Fix: return expected type (str), not original value (bytes) in email/base64mime.py::body_encode (GH-24476)
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/base64mime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/base64mime.py b/Lib/email/base64mime.py index 17f0818..a7cc373 100644 --- a/Lib/email/base64mime.py +++ b/Lib/email/base64mime.py @@ -84,7 +84,7 @@ def body_encode(s, maxlinelen=76, eol=NL): in an email. """ if not s: - return s + return "" encvec = [] max_unencoded = maxlinelen * 3 // 4 |