def as2bytes()

in tools/tftp_tester.py [0:0]


def as2bytes(i):
    if isinstance(i, TFTP):
        i = i.value
    return struct.pack(">H", i)