@staticmethod
    def pack(values):
        if not isinstance(values, tuple):
            raise ValueError, values % "value not a tuple: %s"
        data = ""
        for v in values:
            data += struct.pack("!H", v)
        padlen = -(CoreTlv.hdrsiz + len(data)) % 4
        return len(data), data + '\0' * padlen
dataset/ETHPy150Open coreemu/core/daemon/core/api/coreapi.py/CoreTlvDataUint16List.pack/swapped operands of `%`