Searched refs:body_encode (Results 1 - 14 of 14) sorted by relevance

/external/python/cpython3/Lib/email/
H A Dbase64mime.py29 'body_encode',
79 def body_encode(s, maxlinelen=76, eol=NL):
76 def body_encode(s, maxlinelen=76, eol=NL): function
H A Dcharset.py382 def body_encode(self, string):
396 return email.base64mime.body_encode(string)
398 # quopromime.body_encode takes a string, but operates on it as if
403 # between 0 and 255, which is what body_encode is expecting.
407 return email.quoprimime.body_encode(string)
377 def body_encode(self, string): member in class:Charset
H A Dquoprimime.py31 'body_encode',
152 def body_encode(body, maxlinelen=76, eol=NL): function
H A Dcontentmanager.py129 # XXX: This is a cleaned-up version of base64mime.body_encode (including a bug
131 # drop both this and quoprimime.body_encode in favor of enhanced binascii
157 sniff_qp = quoprimime.body_encode(sniff.decode('latin-1'),
172 data = quoprimime.body_encode(normal_body(lines).decode('latin-1'),
235 # XXX: quoprimime.body_encode won't encode newline characters in data,
H A Dmessage.py354 self._payload = charset.body_encode(self._payload)
369 self._payload = charset.body_encode(payload)
/external/python/cpython2/Lib/email/
H A Dbase64mime.py30 'body_encode',
158 body_encode = encode
155 body_encode = encode variable
H A Dcharset.py382 def body_encode(self, s, convert=True):
397 return email.base64mime.body_encode(s)
399 return email.quoprimime.body_encode(s)
378 def body_encode(self, s, convert=True): member in class:Charset
H A Dquoprimime.py31 'body_encode',
264 body_encode = encode
261 body_encode = encode variable
H A Dmessage.py266 self._payload = charset.body_encode(self._payload)
272 self._payload = charset.body_encode(self._payload)
/external/python/cpython3/Lib/test/test_email/
H A 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'),
4438 # Use body_encode's default.
4443 # Use body_encode's default.
4447 encoded_body = quoprimime.body_encode(body, **kwargs)
4481 # XXX: body_encode() expec
[all...]
/external/python/cpython2/Lib/email/test/
H A 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'))
H A 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'))
/external/python/cpython3/Lib/
H A Dsmtplib.py55 from email.base64mime import body_encode as encode_base64
/external/python/cpython3/Lib/test/
H A Dtest_smtplib.py5 from email.base64mime import body_encode as encode_base64

Completed in 3485 milliseconds