10000 [3.12] gh-118455: Fix mangle_from_ default value in email.policy.Poli… · python/cpython@d629819 · GitHub
[go: up one dir, main page]

Skip to content

Commit d629819

Browse files
miss-islingtonwimglennsobolevn
authored
[3.12] gh-118455: Fix mangle_from_ default value in email.policy.Policy.__doc__ (GH-118456) (#118586)
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 fed8d73) Co-authored-by: wim glenn <jump@wimglenn.com> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent 0c60524 commit d629819

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)
0