Skip to content

Commit

Permalink
as_string(): Added some text to the docstring to make it clear that
Browse files Browse the repository at this point in the history
it's a convenience only and give hints on what to do for more
flexibility.
  • Loading branch information
warsaw committed Apr 18, 2003
1 parent b05df57 commit 482c5f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/email/Message.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ def as_string(self, unixfrom=False):
"""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()
Expand Down

0 comments on commit 482c5f7

Please sign in to comment.