[issue24797] email.header.decode_header return type is not consistent
R. David Murray
report at bugs.python.org
Mon Aug 17 18:10:37 CEST 2015
R. David Murray added the comment:
Right, it's provisional in 3.4. I'm working on the doc rewrite now (although I suppose there's a chance it won't get accepted for 3.5, I expect it to).
Take a look at https://docs.python.org/3/library/email.policy.html. Basically, if you use EmailMessage instead of Message (and therefore policy.default instead of policy.compat32) header parsing and decoding is handled for you.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24797>
_______________________________________
More information about the Python-bugs-list
mailing list