Searched refs:map01 (Results 1 – 3 of 3) sorted by relevance
/third_party/python/Lib/ |
D | base64.py | 201 def _b32decode(alphabet, s, casefold=False, map01=None): argument 213 if map01 is not None: 214 map01 = _bytes_from_decode_data(map01) 215 assert len(map01) == 1, repr(map01) 216 s = s.translate(bytes.maketrans(b'01', b'O' + map01)) 252 def b32decode(s, casefold=False, map01=None): argument 253 return _b32decode(_b32alphabet, s, casefold, map01)
|
/third_party/python/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)
|
/third_party/python/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
|