Commit e1773cd3 authored by R David Murray's avatar R David Murray

Merge obsolete comment removal from 3.2.

parents df1d00a1 106f8e3e
...@@ -242,7 +242,7 @@ class Message: ...@@ -242,7 +242,7 @@ class Message:
raise TypeError('Expected list, got %s' % type(self._payload)) raise TypeError('Expected list, got %s' % type(self._payload))
payload = self._payload payload = self._payload
cte = self.get('content-transfer-encoding', '').lower() 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 isinstance(payload, str):
if _has_surrogates(payload): if _has_surrogates(payload):
bpayload = payload.encode('ascii', 'surrogateescape') bpayload = payload.encode('ascii', 'surrogateescape')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment