/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/chunk_writer.py

Merge trunk, address review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
                                 % (self.bytes_out_len, self.chunk_size))
145
145
        nulls_needed = self.chunk_size - self.bytes_out_len
146
146
        if nulls_needed:
147
 
            self.bytes_list.append("\x00" * nulls_needed)
 
147
            self.bytes_list.append(b"\x00" * nulls_needed)
148
148
        return self.bytes_list, self.unused_bytes, nulls_needed
149
149
 
150
150
    def set_optimize(self, for_size=True):