def _encode(self, value):
        asciiVal = value.encode('ascii')
        length = len(asciiVal)
        if self.maxSize is not None:
            if length + 1 > self.maxSize:
                raise ValueError((self.maxSize, asciiVal) % "COctetString is longer than allowed maximum size (%d): %s")
        encoded =  struct.pack("%ds" % length, asciiVal) + '\0'
        assert len(encoded) == length + 1
        return encoded
dataset/ETHPy150Open jookies/jasmin/jasmin/vendor/smpp/pdu/pdu_encoding.py/COctetStringEncoder._encode/swapped operands of `%`