Message218419
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'. |
|
Date |
User |
Action |
Args |
2014-05-13 09:08:05 | jim_minter | set | recipients:
+ jim_minter |
2014-05-13 09:08:05 | jim_minter | set | messageid: <1399972085.94.0.85314895463.issue21492@psf.upfronthosting.co.za> |
2014-05-13 09:08:05 | jim_minter | link | issue21492 messages |
2014-05-13 09:08:05 | jim_minter | create | |
|