/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/chunk_writer.py

  • Committer: Jelmer Vernooij
  • Date: 2019-05-29 03:22:34 UTC
  • mfrom: (7303 work)
  • mto: This revision was merged to the branch mainline in revision 7306.
  • Revision ID: jelmer@jelmer.uk-20190529032234-mt3fuws8gq03tapi
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        :param chunk_size: The total byte count to emit at the end of the
102
102
            chunk.
103
103
        :param reserved: How many bytes to allow for reserved data. reserved
104
 
            data space can only be written to via the write(..., reserved=True).
 
104
            data space can only be written to via the write(...,
 
105
            reserved=True).
105
106
        """
106
107
        self.chunk_size = chunk_size
107
108
        self.compressor = zlib.compressobj()
133
134
              could not fit.
134
135
            * num_nulls_needed: How many nulls are padded at the end
135
136
        """
136
 
        self.bytes_in = None # Free the data cached so far, we don't need it
 
137
        self.bytes_in = None  # Free the data cached so far, we don't need it
137
138
        out = self.compressor.flush(Z_FINISH)
138
139
        self.bytes_list.append(out)
139
140
        self.bytes_out_len += len(out)
275
276
                    self.bytes_list = bytes_out
276
277
                    self.bytes_out_len = this_len
277
278
        return False
278