Mercurial > cpython-lru_cache-weakref
changeset 25872:a9cfeb42e240 legacy-trunk
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.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Mon, 21 Oct 2002 05:29:53 +0000 |
| parents | cb910c394927 |
| children | 57fb3d5e3dd3 |
| files | Lib/email/Charset.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/email/Charset.py Mon Oct 21 04:44:11 2002 +0000 +++ b/Lib/email/Charset.py Mon Oct 21 05:29:53 2002 +0000 @@ -348,7 +348,7 @@ # 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
