From: Barry Warsaw Date: Fri, 18 Apr 2003 23:04:35 +0000 (+0000) Subject: as_string(): Added some text to the docstring to make it clear that X-Git-Tag: v2.3c1~1119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=482c5f7eb7eb5408dd48359571b12543732604dc;p=python 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. --- diff --git a/Lib/email/Message.py b/Lib/email/Message.py index 66f8640eb1..0f513f5498 100644 --- a/Lib/email/Message.py +++ b/Lib/email/Message.py @@ -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()