/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 groupcompress.py

  • Committer: John Arbash Meinel
  • Date: 2009-03-10 12:36:01 UTC
  • mto: (3735.31.1 groupcompress)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090310123601-rj0nabnqsy72xbui
Just make sure we have the right decompressor

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
                'bytes did not start with %r' % (cls.GCB_HEADER,))
167
167
        if bytes[4] == 'z':
168
168
            decomp = zlib.decompress
169
 
        else:
 
169
        elif bytes[4] == 'l':
170
170
            decomp = pylzma.decompress
 
171
        else:
 
172
            assert False, 'unknown compressor: %r' % (bytes,)
171
173
        pos = bytes.index('\n', 6)
172
174
        z_header_length = int(bytes[6:pos])
173
175
        pos += 1