bpo-43125: Fix: return expected type (str), not original value (bytes) in email/base64mime.py::body_encode (GH-24476)

This commit is contained in:
Grégory Starck 2021-03-30 04:37:37 -04:00 committed by GitHub
parent dfeec347f2
commit cf35e05f89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

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