Home | History | Annotate | Download | only in Lib

Lines Matching refs:altchars

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], '+/'))