Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3d57589

Browse files
committed
body_encode(): Fixed typo reported by Chris Lawrence, closing SF bug
#625509. This isn't a huge problem because at the moment there are no built-in charsets for which header_encoding is QP but body_encoding is not.
1 parent fca3bb6 commit 3d57589

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/email/Charset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def body_encode(self, s, convert=True):
348348
# 7bit/8bit encodings return the string unchanged (module conversions)
349349
if self.body_encoding is BASE64:
350350
return email.base64MIME.body_encode(s)
351-
elif self.header_encoding is QP:
351+
elif self.body_encoding is QP:
352352
return email.quopriMIME.body_encode(s)
353353
else:
354354
return s

0 commit comments

Comments
 (0)