@classmethod
    def pack(cls, tlvtype, value):
        try:
            tlvlen, tlvdata = cls.tlvdataclsmap[tlvtype].pack(value)
        except Exception, e:
            raise ValueError, (tlvtype, e) % "TLV packing error type=%s: %s"
        if tlvlen < 256:
            hdr = struct.pack(cls.hdrfmt, tlvtype, tlvlen)
        else:
            hdr = struct.pack(cls.longhdrfmt, tlvtype, 0, tlvlen)
        return hdr + tlvdata
dataset/ETHPy150Open coreemu/core/daemon/core/api/coreapi.py/CoreTlv.pack/swapped operands of `%`