Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-101100: Sphinx warnings: pick the low hanging fruits#107386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -274,9 +274,9 @@ in with information about the part. | ||
| .. rubric:: Footnotes | ||
| .. [#] This statement assumes that you use the appropriate setting for | ||
| ``unixfrom``, and that there are no :mod:`policy` settings calling for | ||
| ``unixfrom``, and that there are no :mod:`email.policy` settings calling for | ||
AA-Turner marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| automatic adjustments (for example, | ||
| :attr:`~email.policy.Policy.refold_source` must be ``none``, which is | ||
| :attr:`~email.policy.EmailPolicy.refold_source` must be ``none``, which is | ||
| *not* the default). It is also not 100% true, since if the message | ||
| does not conform to the RFC standards occasionally information about the | ||
| exact original text is lost during parsing error recovery. It is a goal | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -67,7 +67,7 @@ message objects. | ||
| with the base :class:`~email.message.Message` class *maxheaderlen* is | ||
| accepted, but defaults to ``None``, which means that by default the line | ||
| length is controlled by the | ||
| :attr:`~email.policy.EmailPolicy.max_line_length` of the policy. The | ||
| :attr:`~email.policy.Policy.max_line_length` of the policy. The | ||
| *policy* argument may be used to override the default policy obtained | ||
| from the message instance. This can be used to control some of the | ||
| formatting produced by the method, since the specified *policy* will be | ||
| @@ -213,7 +213,7 @@ message objects. | ||
| del msg['subject'] | ||
| msg['subject'] = 'Python roolz!' | ||
| If the :mod:`policy` defines certain headers to be unique (as the standard | ||
| If the :mod:`policy <email.policy>` defines certain headers to be unique (as the standard | ||
AA-Turner marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| policies do), this method may raise a :exc:`ValueError` when an attempt | ||
| is made to assign a value to such a header when one already exists. This | ||
| behavior is intentional for consistency's sake, but do not depend on it | ||
| @@ -378,7 +378,7 @@ message objects. | ||
| deprecated. | ||
| Note that existing parameter values of headers may be accessed through | ||
| the :attr:`~email.headerregistry.BaseHeader.params` attribute of the | ||
| the :attr:`~email.headerregistry.ParameterizedMIMEHeader.params` attribute of the | ||
| header value (for example, ``msg['Content-Type'].params['charset']``). | ||
| .. versionchanged:: 3.4 ``replace`` keyword was added. | ||
| @@ -691,7 +691,7 @@ message objects. | ||
| .. method:: clear_content() | ||
| Remove the payload and all of the :exc:`Content-` headers, leaving | ||
| Remove the payload and all of the :mailheader:`!Content-` headers, leaving | ||
| all other headers intact and in their original order. | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.