mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
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.
This commit is contained in:
parent
fca3bb6a29
commit
3d57589f0f
1 changed files with 1 additions and 1 deletions
|
|
@ -348,7 +348,7 @@ class Charset:
|
||||||
# 7bit/8bit encodings return the string unchanged (module conversions)
|
# 7bit/8bit encodings return the string unchanged (module conversions)
|
||||||
if self.body_encoding is BASE64:
|
if self.body_encoding is BASE64:
|
||||||
return email.base64MIME.body_encode(s)
|
return email.base64MIME.body_encode(s)
|
||||||
elif self.header_encoding is QP:
|
elif self.body_encoding is QP:
|
||||||
return email.quopriMIME.body_encode(s)
|
return email.quopriMIME.body_encode(s)
|
||||||
else:
|
else:
|
||||||
return s
|
return s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue