/breezy/trunk

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

« back to all changes in this revision

Viewing changes to breezy/chunk_writer.py

  • Committer: Jelmer Vernooij
  • Date: 2017-07-23 22:06:41 UTC
  • mfrom: (6738 trunk)
  • mto: This revision was merged to the branch mainline in revision 6739.
  • Revision ID: jelmer@jelmer.uk-20170723220641-69eczax9bmv8d6kk
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):