def urlsafe_b64decode(b64): """ Decode a url safe base64-encoded string. Note that we use stddecode to work around a bug in the standard library. """ b = b64.replace(b'-', b'+').replace(b'_', b'/') return stddecode(b)
def urlsafe_b64decode(b64): """ Decode a url safe base64-encoded string. Note that we use stddecode to work around a bug in the standard library. """ b = b64.replace('-', '+').replace('_', '/') return stddecode(b)