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 r.david.murray
Recipients r.david.murray, sdaoden
Date 2011-03-25.13:51:45
SpamBayes Score 0.00029610549
Marked as misclassified No
Message-id <1301061106.04.0.568905610677.issue11584@psf.upfronthosting.co.za>
In-reply-to
Content
Thinking about this some more, I now think it is incorrect that an 8bit header causes getitem to return a Header object.  I think instead it should be returning the stringified version of the header, including the unknown-8bit encoding.  That way decode_header can be used as normal to recover the original bytes.

I hate making a change like this in a bug fix release, but in this case I think it is the right thing to do.  I will propose a patch soon.
History
Date User Action Args
2011-03-25 13:51:46r.david.murraysetrecipients: + r.david.murray, sdaoden
2011-03-25 13:51:46r.david.murraysetmessageid: <1301061106.04.0.568905610677.issue11584@psf.upfronthosting.co.za>
2011-03-25 13:51:45r.david.murraylinkissue11584 messages
2011-03-25 13:51:45r.david.murraycreate