mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Add documentation about as_string() mangling From_ lines.
This commit is contained in:
parent
05bef930fa
commit
2ec4854f13
1 changed files with 4 additions and 3 deletions
|
@ -37,9 +37,10 @@ Return the entire message flatten as a string. When optional
|
|||
\var{unixfrom} is \code{True}, the envelope header is included in the
|
||||
returned string. \var{unixfrom} defaults to \code{False}.
|
||||
|
||||
Note that this method is provided as a convenience and may not always
|
||||
format the message the way you want. For more flexibility,
|
||||
instantiate a \class{Generator} instance and use its
|
||||
Note that this method is provided as a convenience and may not always format
|
||||
the message the way you want. For example, by default it mangels lines that
|
||||
begin with \code{From }. For more flexibility, instantiate a
|
||||
\class{Generator} instance and use its
|
||||
\method{flatten()} method directly. For example:
|
||||
|
||||
\begin{verbatim}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue