464
466
self.remember_value = None # holds index of next block
465
467
self.remember_block = None # holds block of next block
471
469
def tarinfo2tarblock(self, index, tarinfo, file_data = ""):
473
471
Make tarblock out of tarinfo and file data
475
473
tarinfo.size = len(file_data)
477
475
blocks, remainder = divmod(tarinfo.size, tarfile.BLOCKSIZE) #@UnusedVariable
479
477
filler_data = "\0" * (tarfile.BLOCKSIZE - remainder)