@@ -62,12 +62,10 @@ message objects.
6262 .. note ::
6363
6464 The :class: `EmailMessage ` class requires a policy that provides a
65- ``content_manager `` attribute (such as :class: `~email.policy.EmailPolicy `)
66- for content management methods like :meth: `set_content ` and
67- :meth: `get_content ` to work. The legacy :class: `~email.policy.Compat32 `
68- policy does not support these methods. To serialize a message with
69- compat32 formatting, construct the message with a modern policy and pass
70- :const: `~email.policy.compat32 ` to :meth: `as_string ` or :meth: `as_bytes `.
65+ ``content_manager `` attribute for content management methods like
66+ :meth: `set_content ` and :meth: `get_content ` to work.
67+ The legacy :class: `~email.policy.Compat32 ` policy does not support
68+ these methods and should not be used with :class: `EmailMessage `.
7169
7270 .. method :: as_string(unixfrom=False, maxheaderlen=None, policy=None)
7371
@@ -613,12 +611,6 @@ message objects.
613611 *content_manager * is not specified, use the ``content_manager `` specified
614612 by the current :mod: `~email.policy `.
615613
616- .. note ::
617-
618- This method requires a policy with a ``content_manager `` attribute.
619- The legacy :const: `~email.policy.compat32 ` policy does not support
620- this method.
621-
622614
623615 .. method :: set_content(*args, content_manager=None, **kw)
624616
@@ -628,12 +620,6 @@ message objects.
628620 *content_manager * is not specified, use the ``content_manager `` specified
629621 by the current :mod: `~email.policy `.
630622
631- .. note ::
632-
633- This method requires a policy with a ``content_manager `` attribute.
634- The legacy :const: `~email.policy.compat32 ` policy does not support
635- this method.
636-
637623
638624 .. method :: make_related(boundary=None)
639625
0 commit comments