67
67
def finish_node(self, pad=True):
68
68
byte_lines, _, padding = self.writer.finish()
71
70
self.spool = cStringIO.StringIO()
73
72
self.spool.write("\x00" * _RESERVED_HEADER_BYTES)
75
74
# We got bigger than 1 node, switch to a temp file
77
75
spool = tempfile.TemporaryFile(prefix='bzr-index-row-')
78
76
spool.write(self.spool.getvalue())