Lines Matching defs:decode
36 # The main API functions for the module are decode, which calls the decoder
55 'decode',
65 lambda m: bytes.fromhex(m.group(1).decode()))
135 # way to decode.
139 return base64.b64encode(bstring).decode('ascii')
152 def decode(ew):
165 the cte-decoded string does not successfully decode using the specified
181 string = bstring.decode(charset)
185 string = bstring.decode(charset, 'surrogateescape')
187 string = bstring.decode('ascii', 'surrogateescape')