mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Remove obsolete comment.
This commit is contained in:
parent
56a9d7e3da
commit
106f8e3ea4
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue