~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/groupcompress.py

  • Committer: Martin Pool
  • Date: 2011-11-18 05:13:19 UTC
  • mto: This revision was merged to the branch mainline in revision 6277.
  • Revision ID: mbp@canonical.com-20111118051319-9cj53bg5e06zl7rw
Remove more lzma related code

Show diffs side-by-side

added added

removed removed

Lines of Context:
307
307
    def _create_z_content(self):
308
308
        if self._z_content_chunks is not None:
309
309
            return
310
 
        if _USE_LZMA:
311
 
            self._create_z_content_using_lzma()
312
 
            return
313
310
        if self._content_chunks is not None:
314
311
            chunks = self._content_chunks
315
312
        else:
319
316
    def to_chunks(self):
320
317
        """Create the byte stream as a series of 'chunks'"""
321
318
        self._create_z_content()
322
 
        if _USE_LZMA:
323
 
            header = self.GCB_LZ_HEADER
324
 
        else:
325
 
            header = self.GCB_HEADER
 
319
        header = self.GCB_HEADER
326
320
        chunks = ['%s%d\n%d\n'
327
321
                  % (header, self._z_content_length, self._content_length),
328
322
                 ]