def b64decode_url(istr):
    """ JWT Tokens may be truncated without the usual trailing padding '='
        symbols. Compensate by padding to the nearest 4 bytes.
    """
    istr = encode_safe(istr)
    try:
        return urlsafe_b64decode(istr + '=' * (4 - (len(istr) % 4)))
    except __HOLE__ as e:
        raise Error('Unable to decode base64: %s' % (e))
dataset/ETHPy150Open Demonware/jose/jose.py/b64decode_url