/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
base64.py | 32 def _translate(s, altchars):
34 for k, v in altchars.items():
43 def b64encode(s, altchars=None):
46 s is the string to encode. Optional altchars must be a string of at least
55 if altchars is not None:
56 return _translate(encoded, {'+': altchars[0], '/': altchars[1]})
60 def b64decode(s, altchars=None):
63 s is the string to decode. Optional altchars must be a string of at least
71 if altchars is not None: [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
base64.py | 32 def _translate(s, altchars): 34 for k, v in altchars.items(): 43 def b64encode(s, altchars=None): 46 s is the string to encode. Optional altchars must be a string of at least 55 if altchars is not None: 56 return _translate(encoded, {'+': altchars[0], '/': altchars[1]}) 60 def b64decode(s, altchars=None): 63 s is the string to decode. Optional altchars must be a string of at least 71 if altchars is not None [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
base64.py | 32 def _translate(s, altchars): 34 for k, v in altchars.items(): 43 def b64encode(s, altchars=None): 46 s is the string to encode. Optional altchars must be a string of at least 55 if altchars is not None: 56 return _translate(encoded, {'+': altchars[0], '/': altchars[1]}) 60 def b64decode(s, altchars=None): 63 s is the string to decode. Optional altchars must be a string of at least 71 if altchars is not None [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
base64.py | 32 def _translate(s, altchars): 34 for k, v in altchars.items(): 43 def b64encode(s, altchars=None): 46 s is the string to encode. Optional altchars must be a string of at least 55 if altchars is not None: 56 return _translate(encoded, {'+': altchars[0], '/': altchars[1]}) 60 def b64decode(s, altchars=None): 63 s is the string to decode. Optional altchars must be a string of at least 71 if altchars is not None [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
base64.py | 32 def _translate(s, altchars): 34 for k, v in altchars.items(): 43 def b64encode(s, altchars=None): 46 s is the string to encode. Optional altchars must be a string of at least 55 if altchars is not None: 56 return _translate(encoded, {'+': altchars[0], '/': altchars[1]}) 60 def b64decode(s, altchars=None): 63 s is the string to decode. Optional altchars must be a string of at least 71 if altchars is not None [all...] |
/external/python/cpython2/Lib/ |
base64.py | 33 def _translate(s, altchars): 35 for k, v in altchars.items(): 44 def b64encode(s, altchars=None): 47 s is the string to encode. Optional altchars must be a string of at least 56 if altchars is not None: 57 return encoded.translate(string.maketrans(b'+/', altchars[:2])) 61 def b64decode(s, altchars=None): 64 s is the string to decode. Optional altchars must be a string of at least 73 if altchars is not None: 74 s = s.translate(string.maketrans(altchars[:2], '+/') [all...] |
/external/python/cpython3/Lib/ |
base64.py | 51 def b64encode(s, altchars=None): 54 Optional altchars should be a byte string of length 2 which specifies an 59 if altchars is not None: 60 assert len(altchars) == 2, repr(altchars) 61 return encoded.translate(bytes.maketrans(b'+/', altchars)) 65 def b64decode(s, altchars=None, validate=False): 68 Optional altchars must be a bytes-like object or ASCII string of length 2 81 if altchars is not None: 82 altchars = _bytes_from_decode_data(altchars [all...] |
/external/python/cpython3/Lib/test/ |
test_base64.py | 149 eq(base64.b64encode(b'\xd3V\xbeo\xf7\x1d', altchars=b'*$'), b'01a*b$cd') 150 eq(base64.b64encode(b'\xd3V\xbeo\xf7\x1d', altchars=bytearray(b'*$')), 152 eq(base64.b64encode(b'\xd3V\xbeo\xf7\x1d', altchars=memoryview(b'*$')), 154 eq(base64.b64encode(b'\xd3V\xbeo\xf7\x1d', altchars=array('B', b'*$')), 159 self.assertRaises(TypeError, base64.b64encode, b"", altchars="*$") 210 for (data, altchars), res in tests_altchars.items(): 212 altchars_str = altchars.decode('ascii') 214 eq(base64.b64decode(data, altchars=altchars), res) 215 eq(base64.b64decode(data_str, altchars=altchars), res [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_base64.py | 81 eq(base64.b64encode('\xd3V\xbeo\xf7\x1d', altchars='*$'), '01a*b$cd') 85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$')) 120 eq(base64.b64decode('01a*b$cd', altchars='*$'), '\xd3V\xbeo\xf7\x1d')
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_base64.py | 81 eq(base64.b64encode('\xd3V\xbeo\xf7\x1d', altchars='*$'), '01a*b$cd') 85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$')) 120 eq(base64.b64decode('01a*b$cd', altchars='*$'), '\xd3V\xbeo\xf7\x1d')
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_base64.py | 81 eq(base64.b64encode('\xd3V\xbeo\xf7\x1d', altchars='*$'), '01a*b$cd') 85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$')) 120 eq(base64.b64decode('01a*b$cd', altchars='*$'), '\xd3V\xbeo\xf7\x1d')
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_base64.py | 81 eq(base64.b64encode('\xd3V\xbeo\xf7\x1d', altchars='*$'), '01a*b$cd') 85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$')) 120 eq(base64.b64decode('01a*b$cd', altchars='*$'), '\xd3V\xbeo\xf7\x1d')
|
/external/python/cpython2/Lib/test/ |
test_base64.py | 81 eq(base64.b64encode('\xd3V\xbeo\xf7\x1d', altchars='*$'), '01a*b$cd') 85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$')) 120 eq(base64.b64decode('01a*b$cd', altchars='*$'), '\xd3V\xbeo\xf7\x1d')
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_base64.py | 77 eq(base64.b64encode('\xd3V\xbeo\xf7\x1d', altchars='*$'), '01a*b$cd')
108 eq(base64.b64decode('01a*b$cd', altchars='*$'), '\xd3V\xbeo\xf7\x1d')
|