Skip to content

Commit

Permalink
pythongh-118455: Fix mangle_from_ default value in email.policy.Polic…
Browse files Browse the repository at this point in the history
…y.__doc__ (python#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 <mail@sobolevn.me>
  • Loading branch information
wimglenn and sobolevn committed May 5, 2024
1 parent 711c80b commit fed8d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/email/_policybase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fed8d73

Please sign in to comment.