~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tuned_gzip.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-20 02:28:21 UTC
  • mfrom: (1666.1.10 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060420022821-4337b8fa4942d8fe
Make knits the default format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import struct
25
25
import zlib
26
26
 
 
27
# we want a \n preserved, break on \n only splitlines.
 
28
import bzrlib
 
29
 
27
30
__all__ = ["GzipFile"]
28
31
 
29
32
 
250
253
        if sizehint <= 0:
251
254
            sizehint = -1
252
255
        content = self.read(sizehint)
253
 
        return content.splitlines(True)
 
256
        return bzrlib.osutils.split_lines(content)
254
257
 
255
258
    def _unread(self, buf, len_buf=None):
256
259
        """tuned to remove unneeded len calls.