diff options
author | Barry Warsaw <barry@python.org> | 2002-10-21 05:29:53 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-10-21 05:29:53 (GMT) |
commit | 3d57589f0fe4e682df2961294b5cf23571cab70f (patch) | |
tree | 8cb98bee65ab483de350cbdb8cfe5657b3fe4fb1 /Lib/email/Charset.py | |
parent | fca3bb6a296f3d6bc9e0c0eea43e7da7051c94e7 (diff) | |
download | cpython-3d57589f0fe4e682df2961294b5cf23571cab70f.zip cpython-3d57589f0fe4e682df2961294b5cf23571cab70f.tar.gz cpython-3d57589f0fe4e682df2961294b5cf23571cab70f.tar.bz2 |
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.
Diffstat (limited to 'Lib/email/Charset.py')
-rw-r--r-- | Lib/email/Charset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/Charset.py b/Lib/email/Charset.py index b852245..165ed25 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 |