Skip to content

mangle_from_ default in email.policy.Policy.__doc__ is wrong #118455

Closed
@wimglenn

Description

@wimglenn

Bug report

Bug description:

>>> from email.policy import Policy
>>> Policy.mangle_from_
False
>>> print(Policy.__doc__)
...
    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.
...

This attribute was added in fdb23c2 and was always False by default, as far as I can see.

The docs also correctly say that it defaults to False. I don't know why the class docstring says otherwise.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions