]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 May 2024 06:35:11 +0000 (08:35 +0200)
committerGitHub <noreply@github.com>
Sun, 5 May 2024 06:35:11 +0000 (06:35 +0000)
gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ (GH-118456)

* Fix mangle_from_ default value in email.policy.Policy.__doc__

The docstring says it defaults to True, but it actually defaults
to False. Only the Compat32 subclass overrides that.

---------

(cherry picked from commit fed8d73fde779fca41026398376cb3038e9b2b5f)

Co-authored-by: wim glenn <jump@wimglenn.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/email/_policybase.py

index c9cbadd2a80c48e7ce1c9247a22fd3024f365249..2ec54fbabae83cfc9cefdca6e0390be23c301eca 100644 (file)
@@ -152,7 +152,7 @@ class Policy(_PolicyBase, metaclass=abc.ABCMeta):
     mangle_from_        -- a flag that, when True escapes From_ lines in the
                            body of the message by putting a `>' in front of
                            them. This is used when the message is being
-                           serialized by a generator. Default: True.
+                           serialized by a generator. Default: False.
 
     message_factory     -- the class to use to create new message objects.
                            If the value is None, the default is Message.