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 jim_minter
Recipients jim_minter
Date 2014-05-13.09:08:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399972085.94.0.85314895463.issue21492@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3.3.2 (default, Mar  5 2014, 08:21:05) 
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import email.header
>>> email.header.decode_header("foo")
[('foo', None)]
>>> email.header.decode_header("foo=?windows-1252?Q?bar?=")
[(b'foo', None), (b'bar', 'windows-1252')]

I may well be wrong, but I believe it's erroneous that in the second example above, b'foo' is returned instead of the expected 'foo'.
History
Date User Action Args
2014-05-13 09:08:05jim_mintersetrecipients: + jim_minter
2014-05-13 09:08:05jim_mintersetmessageid: <1399972085.94.0.85314895463.issue21492@psf.upfronthosting.co.za>
2014-05-13 09:08:05jim_minterlinkissue21492 messages
2014-05-13 09:08:05jim_mintercreate