diff options
author | R David Murray <rdmurray@bitdance.com> | 2016-09-10 04:22:25 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2016-09-10 04:22:25 (GMT) |
commit | b067c8fdd1e205bd0411417b6d5e4b832c3773fc (patch) | |
tree | 1bd428963f46ae7cec4bceedfc9c3a049ce3102e /Doc/library/email.policy.rst | |
parent | c7454ff5fcd8d216495990df7db11be73e273a33 (diff) | |
download | cpython-b067c8fdd1e205bd0411417b6d5e4b832c3773fc.zip cpython-b067c8fdd1e205bd0411417b6d5e4b832c3773fc.tar.gz cpython-b067c8fdd1e205bd0411417b6d5e4b832c3773fc.tar.bz2 |
#20476: Deal with the message_factory circular import differently.
It turns out we can't depend on email.message getting imported every place
message_factory is needed, so to avoid a circular import we need to special
case Policy.message_factory=None in the parser instead of using monkey
patching. I had a feeling that was a bad idea when I did it.
Diffstat (limited to 'Doc/library/email.policy.rst')
-rw-r--r-- | Doc/library/email.policy.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/email.policy.rst b/Doc/library/email.policy.rst index b345683..8a41877 100644 --- a/Doc/library/email.policy.rst +++ b/Doc/library/email.policy.rst @@ -224,8 +224,8 @@ added matters. To illustrate:: .. attribute:: message_factory A factory function for constructing a new empty message object. Used - by the parser when building messages. Defaults to - :class:`~email.message.Message`. + by the parser when building messages. Defaults to ``None``, in + which case :class:`~email.message.Message` is used. .. versionadded:: 3.6 |