[New-bugs-announce] [issue20476] If new email policies are used, default message factory should be EmailMessage
R. David Murray
report at bugs.python.org
Sat Feb 1 23:08:05 CET 2014
New submission from R. David Murray:
This was part of the design of the new stuff added in 3.4, so it is a bug that it doesn't work...somehow I missed implementing this detail. The full implementation should make this a policy setting, so that a custom policy could specify its own factory. However, since 3.4 is in beta it would be a bad time to add that to the policy.
The patch proposed here implements the required behavior by hardcoding any non-compat32 policy to use EmailMessage instead of Message in feedparser.
nosy: barry, r.david.murray
stage: commit review
title: If new email policies are used, default message factory should be EmailMessage
versions: Python 3.4
Added file: http://bugs.python.org/file33848/use_emailmessage.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce