summaryrefslogtreecommitdiff
path: root/Lib/email/encoders.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email/encoders.py')
-rw-r--r--Lib/email/encoders.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/email/encoders.py b/Lib/email/encoders.py
index 06016cdea7..af45e62c33 100644
--- a/Lib/email/encoders.py
+++ b/Lib/email/encoders.py
@@ -72,13 +72,7 @@ def encode_7or8bit(msg):
try:
orig.encode('ascii')
except UnicodeError:
- # iso-2022-* is non-ASCII but still 7-bit
- charset = msg.get_charset()
- output_cset = charset and charset.output_charset
- if output_cset and output_cset.lower().startswith('iso-2202-'):
- msg['Content-Transfer-Encoding'] = '7bit'
- else:
- msg['Content-Transfer-Encoding'] = '8bit'
+ msg['Content-Transfer-Encoding'] = '8bit'
else:
msg['Content-Transfer-Encoding'] = '7bit'