From: Barry Warsaw Date: Mon, 21 Oct 2002 05:29:53 +0000 (+0000) Subject: body_encode(): Fixed typo reported by Chris Lawrence, closing SF bug X-Git-Tag: v2.3c1~3711 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d57589f0fe4e682df2961294b5cf23571cab70f;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/email/Charset.py b/Lib/email/Charset.py index b852245b00af..165ed25426d0 100644 --- a/Lib/email/Charset.py +++ b/Lib/email/Charset.py @@ -348,7 +348,7 @@ class Charset: # 7bit/8bit encodings return the string unchanged (module conversions) if self.body_encoding is BASE64: return email.base64MIME.body_encode(s) - elif self.header_encoding is QP: + elif self.body_encoding is QP: return email.quopriMIME.body_encode(s) else: return s