Skip to content

Commit fed8d73

Browse files
wimglennsobolevn
andauthored
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 <[email protected]>
1 parent 711c80b commit fed8d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/email/_policybase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class Policy(_PolicyBase, metaclass=abc.ABCMeta):
152152
mangle_from_ -- a flag that, when True escapes From_ lines in the
153153
body of the message by putting a `>' in front of
154154
them. This is used when the message is being
155-
serialized by a generator. Default: True.
155+
serialized by a generator. Default: False.
156156
157157
message_factory -- the class to use to create new message objects.
158158
If the value is None, the default is Message.

0 commit comments

Comments
 (0)