def intFromBytes(data, byteorder, signed=False):
    """
    Convert an integer in packed form to a Python C{int}.

    @type data: L{bytes}
    @param data: The packed integer.

    @type byteorder: L{str}
    @param byteorder: The byte order the data is in.  Only C{'big'} is
        currently supported.

    @type signed: L{bool}
    @param signed: C{True} for signed, C{False} for unsigned.

    @rtype: L{int}
    @return: The decoded integer.
    """
    assert byteorder == 'big'
    assert not signed

    if len(data) % 4 != 0:
        data = (b'\x00' * (4 - (4 % len(data)))) + data

    result = 0

    while len(data) > 0:
        digit, = struct.unpack('>I', data[:4])
        result = (result << 32) + digit
        data = data[4:]

    return result
dataset/ETHPy150Open twisted/twisted/twisted/conch/ssh/_cryptography_backports.py/intFromBytes/swapped operands of `%`