mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#21300: Clean up the docs for the email "policy" arguments.
This commit is contained in:
parent
3d139d8ed6
commit
e25244657c
3 changed files with 37 additions and 23 deletions
|
@ -51,8 +51,9 @@ class Generator:
|
|||
by RFC 2822.
|
||||
|
||||
The policy keyword specifies a policy object that controls a number of
|
||||
aspects of the generator's operation. The default policy maintains
|
||||
backward compatibility.
|
||||
aspects of the generator's operation. If no policy is specified,
|
||||
the policy associated with the Message object passed to the
|
||||
flatten method is used.
|
||||
|
||||
"""
|
||||
self._fp = outfp
|
||||
|
@ -76,7 +77,9 @@ class Generator:
|
|||
Note that for subobjects, no From_ line is printed.
|
||||
|
||||
linesep specifies the characters used to indicate a new line in
|
||||
the output. The default value is determined by the policy.
|
||||
the output. The default value is determined by the policy specified
|
||||
when the Generator instance was created or, if none was specified,
|
||||
from the policy associated with the msg.
|
||||
|
||||
"""
|
||||
# We use the _XXX constants for operating on data that comes directly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue