Home
last modified time | relevance | path

Searched refs:map01 (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Lib/
Dbase64.py180 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/
Dbase64.py184 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/
Dtest_base64.py327 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/
Dtest_base64.py206 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/
Dbase64.rst85 .. 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/
Dbase64.rst118 .. 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