Merge obsolete comment removal from 3.2.

This commit is contained in:
R David Murray 2011-03-15 12:49:33 -04:00
commit e1773cd3cb
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,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')