~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
import os
69
69
import sys
70
70
import warnings
 
71
from zlib import Z_DEFAULT_COMPRESSION
71
72
 
72
73
import bzrlib
73
74
from bzrlib.lazy_import import lazy_import
1883
1884
        :return: (len, a StringIO instance with the raw data ready to read.)
1884
1885
        """
1885
1886
        sio = StringIO()
1886
 
        data_file = GzipFile(None, mode='wb', fileobj=sio)
 
1887
        data_file = GzipFile(None, mode='wb', fileobj=sio,
 
1888
            compresslevel=Z_DEFAULT_COMPRESSION)
1887
1889
 
1888
1890
        assert isinstance(version_id, str)
1889
1891
        data_file.writelines(chain(