Home
last modified time | relevance | path

Searched refs:body_encode (Results 1 – 11 of 11) sorted by relevance

/third_party/python/Lib/email/
Dcharset.py375 def body_encode(self, string): member in Charset
389 return email.base64mime.body_encode(string)
400 return email.quoprimime.body_encode(string)
Dbase64mime.py76 def body_encode(s, maxlinelen=76, eol=NL): function
Dcontentmanager.py157 sniff_qp = quoprimime.body_encode(sniff.decode('latin-1'),
172 data = quoprimime.body_encode(normal_body(lines).decode('latin-1'),
Dquoprimime.py152 def body_encode(body, maxlinelen=76, eol=NL): function
Dmessage.py352 self._payload = charset.body_encode(self._payload)
367 self._payload = charset.body_encode(payload)
/third_party/python/Lib/test/test_email/
Dtest_email.py4269 len(base64mime.body_encode(b'hello', eol='')))
4286 eq(base64mime.body_encode(b''), '')
4287 eq(base64mime.body_encode(b'hello'), 'aGVsbG8=\n')
4289 eq(base64mime.body_encode(b'hello\n'), 'aGVsbG8K\n')
4291 eq(base64mime.body_encode(b'xxxx ' * 20, maxlinelen=40), """\
4298 eq(base64mime.body_encode(b'xxxx ' * 20, maxlinelen=40, eol='\r\n'),
4526 encoded_body = quoprimime.body_encode(body, **kwargs)
4613 eq(quoprimime.body_encode(''), '')
4614 eq(quoprimime.body_encode('hello'), 'hello')
4616 eq(quoprimime.body_encode('hello\r\nworld'), 'hello\nworld')
[all …]
/third_party/python/Doc/library/
Demail.charset.rst139 .. method:: body_encode(string)
/third_party/python/Lib/
Dsmtplib.py55 from email.base64mime import body_encode as encode_base64
/third_party/python/Misc/NEWS.d/
D3.10.0a7.rst619 Return empty string if base64mime.body_encode receive empty bytes
/third_party/python/Lib/test/
Dtest_smtplib.py4 from email.base64mime import body_encode as encode_base64
/third_party/python/Misc/
DHISTORY13339 - Charset.body_encode now correctly handles base64 encoding by encoding with the