summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/Charset.py2
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