Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/encodings/
Dbase64_codec.py15 return (base64.encodebytes(input), len(input))
30 return base64.encodebytes(input)
/external/python/cpython3/Lib/test/
Dtest_base64.py31 eq(base64.encodebytes(b"www.python.org"), b"d3d3LnB5dGhvbi5vcmc=\n")
32 eq(base64.encodebytes(b"a"), b"YQ==\n")
33 eq(base64.encodebytes(b"ab"), b"YWI=\n")
34 eq(base64.encodebytes(b"abc"), b"YWJj\n")
35 eq(base64.encodebytes(b""), b"")
36 eq(base64.encodebytes(b"abcdefghijklmnopqrstuvwxyz"
43 eq(base64.encodebytes(bytearray(b'abc')), b'YWJj\n')
44 eq(base64.encodebytes(memoryview(b'abc')), b'YWJj\n')
45 eq(base64.encodebytes(array('B', b'abc')), b'YWJj\n')
46 self.check_type_errors(base64.encodebytes)
Dtest_xmlrpc.py568 de = base64.encodebytes(d)
Dtest_urllib2.py1594 base64.encodebytes(userpass).strip().decode())
/external/python/cpython3/Lib/email/
Dencoders.py15 from base64 import encodebytes as _bencode
/external/python/cpython3/Lib/
Dbase64.py524 def encodebytes(s): function
540 return encodebytes(s)
587 s1 = encodebytes(s0)
/external/scapy/scapy/
Dcompat.py135 return base64.encodebytes(raw(x)).replace(b'\n', b'')
/external/python/cpython3/Lib/xmlrpc/
Dclient.py412 encoded = base64.encodebytes(self.data)
563 encoded = base64.encodebytes(value)
1221 auth = base64.encodebytes(auth).decode("utf-8")
/external/python/cpython3/Doc/library/
Dbase64.rst255 .. function:: encodebytes(s)
266 Deprecated alias of :func:`encodebytes`.
Dcodecs.rst1345 …64_codec [#b64]_ | base64, base_64 | Convert operand to multiline | :meth:`base64.encodebytes` / |
/external/python/cpython3/Misc/
DHISTORY3824 - Issue #17839: base64.decodebytes and base64.encodebytes now accept any