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

  • Committer: Martin
  • Date: 2017-05-24 19:44:00 UTC
  • mto: This revision was merged to the branch mainline in revision 6634.
  • Revision ID: gzlist@googlemail.com-20170524194400-ut2d4k62szpyofcm
Run 2to3 map fixer and refactor after

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from __future__ import absolute_import
20
20
 
 
21
from future_builtins import map
21
22
import time
22
23
import zlib
23
24
 
300
301
        compressor = zlib.compressobj(zlib.Z_DEFAULT_COMPRESSION)
301
302
        # Peak in this point is 1 fulltext, 1 compressed text, + zlib overhead
302
303
        # (measured peak is maybe 30MB over the above...)
303
 
        compressed_chunks = map(compressor.compress, chunks)
 
304
        compressed_chunks = list(map(compressor.compress, chunks))
304
305
        compressed_chunks.append(compressor.flush())
305
306
        # Ignore empty chunks
306
307
        self._z_content_chunks = [c for c in compressed_chunks if c]