Searched refs:map01 (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Lib/ |
D | base64.py | 180 def b32decode(s, casefold=False, map01=None): argument 209 if map01 is not None: 210 map01 = _bytes_from_decode_data(map01) 211 assert len(map01) == 1, repr(map01) 212 s = s.translate(bytes.maketrans(b'01', b'O' + map01))
|
/external/python/cpython2/Lib/ |
D | base64.py | 184 def b32decode(s, casefold=False, map01=None): argument 209 if map01: 210 s = s.translate(string.maketrans(b'01', b'O' + map01))
|
/external/python/cpython3/Lib/test/ |
D | test_base64.py | 327 for (data, map01), res in map_tests.items(): 329 map01_str = map01.decode('ascii') 331 eq(base64.b32decode(data, map01=map01), res) 332 eq(base64.b32decode(data_str, map01=map01), res) 333 eq(base64.b32decode(data, map01=map01_str), res) 334 eq(base64.b32decode(data_str, map01=map01_str), res)
|
/external/python/cpython2/Lib/test/ |
D | test_base64.py | 206 eq(base64.b32decode('M1023456', map01='L'), 'b\xdd\xad\xf3\xbe') 207 eq(base64.b32decode('M1023456', map01='I'), 'b\x1d\xad\xf3\xbe')
|
/external/python/cpython2/Doc/library/ |
D | base64.rst | 85 .. function:: b32decode(s[, casefold[, map01]]) 95 or letter L (el). The optional argument *map01* when not ``None``, specifies 96 which letter the digit 1 should be mapped to (when *map01* is not ``None``, the
|
/external/python/cpython3/Doc/library/ |
D | base64.rst | 118 .. function:: b32decode(s, casefold=False, map01=None) 129 or letter L (el). The optional argument *map01* when not ``None``, specifies 130 which letter the digit 1 should be mapped to (when *map01* is not ``None``, the
|