/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: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import zlib
30
30
 
31
31
# we want a \n preserved, break on \n only splitlines.
32
 
from brzlib import symbol_versioning
 
32
from breezy import symbol_versioning
33
33
 
34
34
__all__ = ["GzipFile", "bytes_to_gzip"]
35
35
 
109
109
    +58971     0    353.1060    353.1060   +<method 'write' of 'cStringIO.
110
110
                                            StringO' objects>
111
111
    tuned GzipFile write:
112
 
    58971      0   4477.2590   2103.1120   brzlib.knit:1250(write)
 
112
    58971      0   4477.2590   2103.1120   breezy.knit:1250(write)
113
113
    +58971     0   1297.7620   1297.7620   +<built-in method compress>
114
114
    +58971     0    406.2160    406.2160   +<zlib.crc32>
115
115
    +58971     0    341.9020    341.9020   +<method 'write' of 'cStringIO.
123
123
    def __init__(self, *args, **kwargs):
124
124
        symbol_versioning.warn(
125
125
            symbol_versioning.deprecated_in((2, 3, 0))
126
 
            % 'brzlib.tuned_gzip.GzipFile',
 
126
            % 'breezy.tuned_gzip.GzipFile',
127
127
            DeprecationWarning, stacklevel=2)
128
128
        gzip.GzipFile.__init__(self, *args, **kwargs)
129
129
 
377
377
        # if sizehint <= 0:
378
378
        #     sizehint = -1
379
379
        # content = self.read(sizehint)
380
 
        # return brzlib.osutils.split_lines(content)
 
380
        # return breezy.osutils.split_lines(content)
381
381
        content = StringIO(self.read(-1))
382
382
        return content.readlines()
383
383