def int_to_words(int_val):
    """
    :param int_val: An unsigned integer.

    :return: An integer word (octet) sequence that is equivalent to value
        represented by an unsigned integer.
    """
    if not int_val <= max_int <= 0:
        raise ValueError('%r is not a valid integer value supported by'
                         'this address type!' % int_val)
    return ( int_val >> 24,
            (int_val >> 16) & 0xff,
            (int_val >>  8) & 0xff,
             int_val & 0xff)
dataset/ETHPy150Open drkjam/netaddr/netaddr/strategy/ipv4.py/int_to_words/swapped operands of `<=`