]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #7472: remove unused code from email.encoders.encode_7or8bit.
authorR. David Murray <rdmurray@bitdance.com>
Wed, 5 May 2010 17:31:03 +0000 (17:31 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Wed, 5 May 2010 17:31:03 +0000 (17:31 +0000)
commit7d93221a5c159ce506b2a557777d1a1751c7f743
treed57b1f6f042e0b88ebb53eb88ab8847383aa3357
parentb26dc46576dadd72d608571c021cccc13f4cd8bf
Issue #7472: remove unused code from email.encoders.encode_7or8bit.

Yukihiro Nakadaira noticed a typo in encode_7or8bit that was trying
to special case iso-2022 codecs.  It turns out that the code in
question is never used, because whereas it was designed to trigger
if the payload encoding was eight bit but its output encoding was
7 bit, in practice the payload is always converted to the 7bit
encoding before encode_7or8bit is called.  Patch by Shawat Anand.
Lib/email/encoders.py
Lib/email/test/test_email.py