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

  • Committer: Jelmer Vernooij
  • Date: 2018-05-06 11:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180506114854-h4qd9ojaqy8wxjsd
Move .mailmap to root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
 
43
43
def chunks_to_gzip(chunks, factory=zlib.compressobj,
44
 
                   level=zlib.Z_DEFAULT_COMPRESSION, method=zlib.DEFLATED,
45
 
                   width=-zlib.MAX_WBITS, mem=zlib.DEF_MEM_LEVEL,
46
 
                   crc32=zlib.crc32):
 
44
    level=zlib.Z_DEFAULT_COMPRESSION, method=zlib.DEFLATED,
 
45
    width=-zlib.MAX_WBITS, mem=zlib.DEF_MEM_LEVEL,
 
46
    crc32=zlib.crc32):
47
47
    """Create a gzip file containing chunks and return its content.
48
48
 
49
49
    :param chunks: An iterable of strings. Each string can have arbitrary
61
61
        b'\002'      # self.fileobj.write('\002')
62
62
        b'\377'      # self.fileobj.write('\377')
63
63
                     # if fname:
64
 
        b''  # self.fileobj.write(fname + '\000')
 
64
        b''          #     self.fileobj.write(fname + '\000')
65
65
        ]
66
66
    # using a compressobj avoids a small header and trailer that the compress()
67
67
    # utility function adds.