This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ynkdir
Recipients ynkdir
Date 2009-12-10.17:43:00
SpamBayes Score 0.008974628
Marked as misclassified No
Message-id <1260466982.74.0.0519719914389.issue7472@psf.upfronthosting.co.za>
In-reply-to
Content
email.encoders.encode_7or8bit(): typo "iso-2202".  "iso-2022" is correct.

Index: Lib/email/encoders.py
===================================================================
--- Lib/email/encoders.py	(revision 76749)
+++ Lib/email/encoders.py	(working copy)
@@ -62,7 +62,7 @@
         # 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-'):
+        if output_cset and output_cset.lower().startswith('iso-2022-'):
             msg['Content-Transfer-Encoding'] = '7bit'
         else:
             msg['Content-Transfer-Encoding'] = '8bit'
History
Date User Action Args
2009-12-10 17:43:02ynkdirsetrecipients: + ynkdir
2009-12-10 17:43:02ynkdirsetmessageid: <1260466982.74.0.0519719914389.issue7472@psf.upfronthosting.co.za>
2009-12-10 17:43:01ynkdirlinkissue7472 messages
2009-12-10 17:43:00ynkdircreate