def base64_url_decode(inp):
    padding_factor = 4 % (4 - len(inp) % 4)
    inp += "="*padding_factor
    return base64.b64decode(unicode(inp).translate(dict(zip(map(ord, u'-_'), u'+/'))))
dataset/ETHPy150Open ofri/Open-Knesset/user/utils.py/base64_url_decode/swapped operands of `%`