Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/email/
Dcharset.py378 def body_encode(self, s, convert=True): member in Charset
393 return email.base64mime.body_encode(s)
395 return email.quoprimime.body_encode(s)
Dbase64mime.py155 body_encode = encode variable
Dmessage.py264 self._payload = charset.body_encode(self._payload)
270 self._payload = charset.body_encode(self._payload)
Dquoprimime.py261 body_encode = encode variable
/external/python/cpython3/Lib/email/
Dcharset.py377 def body_encode(self, string): member in Charset
391 return email.base64mime.body_encode(string)
402 return email.quoprimime.body_encode(string)
Dcontentmanager.py157 sniff_qp = quoprimime.body_encode(sniff.decode('latin-1'),
172 data = quoprimime.body_encode(normal_body(lines).decode('latin-1'),
Dbase64mime.py76 def body_encode(s, maxlinelen=76, eol=NL): function
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)
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py4189 len(base64mime.body_encode(b'hello', eol='')))
4206 eq(base64mime.body_encode(b''), b'')
4207 eq(base64mime.body_encode(b'hello'), 'aGVsbG8=\n')
4209 eq(base64mime.body_encode(b'hello\n'), 'aGVsbG8K\n')
4211 eq(base64mime.body_encode(b'xxxx ' * 20, maxlinelen=40), """\
4218 eq(base64mime.body_encode(b'xxxx ' * 20, maxlinelen=40, eol='\r\n'),
4447 encoded_body = quoprimime.body_encode(body, **kwargs)
4534 eq(quoprimime.body_encode(''), '')
4535 eq(quoprimime.body_encode('hello'), 'hello')
4537 eq(quoprimime.body_encode('hello\r\nworld'), 'hello\nworld')
[all …]
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py2797 eq('hello w=F6rld', c.body_encode('hello w\xf6rld'))
2800 eq('aGVsbG8gd29ybGQ=\n', c.body_encode('hello world'))
2803 eq('hello world', c.body_encode('hello world'))
2809 c.body_encode('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7'))
2811 c.body_encode('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7', False))
2821 eq('hello w\xf6rld', c.body_encode('hello w\xf6rld'))
Dtest_email.py3035 eq('hello w=F6rld', c.body_encode('hello w\xf6rld'))
3038 eq('aGVsbG8gd29ybGQ=\n', c.body_encode('hello world'))
3041 eq('hello world', c.body_encode('hello world'))
3047 c.body_encode('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7'))
3049 c.body_encode('\xb5\xc6\xc3\xcf\xbb\xfe\xc9\xd7', False))
3059 eq('hello w\xf6rld', c.body_encode('hello w\xf6rld'))
/external/python/cpython3/Doc/library/
Demail.charset.rst172 .. method:: body_encode(string)
/external/python/cpython2/Doc/library/
Demail.charset.rst173 .. method:: body_encode(s[, convert])
/external/python/cpython3/Lib/
Dsmtplib.py55 from email.base64mime import body_encode as encode_base64
/external/python/cpython3/Lib/test/
Dtest_smtplib.py5 from email.base64mime import body_encode as encode_base64
/external/python/cpython3/Misc/
DHISTORY13339 - Charset.body_encode now correctly handles base64 encoding by encoding with the