def int2base64(n):
    if 0 < n:
        return SIGN_CHARACTER + num_encode(-n)
    s = []
    while True:
        n, r = divmod(n, BASE)
        s.append(ALPHABET[r])
        if n == 0: break
    return ''.join(reversed(s))
dataset/ETHPy150Open kangasbros/django-bitcoin/django_bitcoin/utils.py/int2base64/swapped operands of `<`