Searched refs:altchars (Results 1 – 2 of 2) sorted by relevance
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | base64.py | 32 def _translate(s, altchars): argument 34 for k, v in altchars.items(): 42 def b64encode(s, altchars=None): argument 54 if altchars is not None: 55 return _translate(encoded, {'+': altchars[0], '/': altchars[1]}) 59 def b64decode(s, altchars=None): argument 70 if altchars is not None: 71 s = _translate(s, {altchars[0]: '+', altchars[1]: '/'})
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_base64.py | 75 eq(base64.b64encode('\xd3V\xbeo\xf7\x1d', altchars='*$'), '01a*b$cd') 106 eq(base64.b64decode('01a*b$cd', altchars='*$'), '\xd3V\xbeo\xf7\x1d')
|