def __int_to_bytes(i):
    m = 0xff
    assert i >= 0
    ba = str()
    while i > 0:
        b = i & m
        ba += str(bytearray([b]))
        i = i >> 8
    return ba[::-1]
dataset/ETHPy150Open cimatosa/jobmanager/jobmanager/binfootprint.py/__int_to_bytes/original