From: wim glenn Date: Sun, 5 May 2024 06:18:04 +0000 (-0500) Subject: gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ (#118456) X-Git-Tag: v3.13.0b1~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fed8d73fde779fca41026398376cb3038e9b2b5f;p=thirdparty%2FPython%2Fcpython.git gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ (#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. --------- Co-authored-by: Nikita Sobolev --- diff --git a/Lib/email/_policybase.py b/Lib/email/_policybase.py index c9cbadd2a80c..2ec54fbabae8 100644 --- a/Lib/email/_policybase.py +++ b/Lib/email/_policybase.py @@ -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.