def encode(self):
        if len(self.data) == 0:
            log.debug("Encoding an empty DAT packet")
        format = "!HH%ds" % len(self.data)
        self.buffer = struct.pack(format,
                                  self.opcode,
                                  self.blocknumber,
                                  self.data)
        return self
Return a list of files modified by the most recent commit.
dataset/ETHPy150Open msoulier/tftpy/tftpy/TftpPacketTypes.py/TftpPacketDAT.encode--crossover with--dataset/ETHPy150Open openstack-infra/release-tools/list_deliverable_changes.py/find_modified_deliverable_files