def read(self, file, size):
        bytesRead = file.read(size)
        length = len(bytesRead)
        if length == 0:
            raise PDUCorruptError("Unexpected EOF", pdu_types.CommandStatus.ESME_RINVMSGLEN)
        if length != size:
            raise PDUCorruptError((size, length) % "Length mismatch. Expecting %d bytes. Read %d", pdu_types.CommandStatus.ESME_RINVMSGLEN)
        return bytesRead
dataset/ETHPy150Open jookies/jasmin/jasmin/vendor/smpp/pdu/pdu_encoding.py/IEncoder.read/swapped operands of `%`