diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-03-15 14:45:20 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-03-15 14:45:20 -0500 |
commit | e97a5b2bda0b1b0352137e564a93e0176b6619e5 (patch) | |
tree | 364c998e611d1347d960263d6b539a02fad526cc /Lib/email/message.py | |
parent | d6afe724cb8a701d6ad2adeb1d8d20e4fde6fca0 (diff) | |
parent | ffdbbcaf715323f653388966eec5c42bf6b139c5 (diff) | |
download | cpython-git-e97a5b2bda0b1b0352137e564a93e0176b6619e5.tar.gz |
merge heads
Diffstat (limited to 'Lib/email/message.py')
-rw-r--r-- | Lib/email/message.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/email/message.py b/Lib/email/message.py index b821bfd622..2713bc5d35 100644 --- a/Lib/email/message.py +++ b/Lib/email/message.py @@ -157,8 +157,7 @@ class Message: header. This is a convenience method and may not generate the message exactly - as you intend because by default it mangles lines that begin with - "From ". For more flexibility, use the flatten() method of a + as you intend. For more flexibility, use the flatten() method of a Generator instance. """ from email.generator import Generator @@ -242,7 +241,7 @@ class Message: raise TypeError('Expected list, got %s' % type(self._payload)) payload = self._payload cte = self.get('content-transfer-encoding', '').lower() - # payload can be bytes here, (I wonder if that is actually a bug?) + # payload may be bytes here. if isinstance(payload, str): if _has_surrogates(payload): bpayload = payload.encode('ascii', 'surrogateescape') |