as_string(): Added some text to the docstring to make it clear that

it's a convenience only and give hints on what to do for more
flexibility.
This commit is contained in:
Barry Warsaw 2003-04-18 23:04:35 +00:00
parent b05df5796a
commit 482c5f7eb7
1 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,10 @@ class Message:
"""Return the entire formatted message as a string.
Optional `unixfrom' when True, means include the Unix From_ envelope
header.
This is a convenience method and may not generate the message exactly
as you intend. For more flexibility, use the flatten() method of a
Generator instance.
"""
from email.Generator import Generator
fp = StringIO()