~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-11 14:44:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1869.
  • Revision ID: john@arbash-meinel.com-20060711144459-40085c06b14494e0
(broken) Work on factoring out handle_response so we can test with fake headers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
                yield offset, data[pos:pos + size]
367
367
                pos += size
368
368
 
 
369
        # Allow all Transports to implement negative offsets
 
370
        # If they haven't fast-pathed readv(), then we
 
371
        # support it by getting the file length and subtracting.
369
372
        def normalize_offsets(offsets):
370
373
            stat = None
371
374
            new_offsets = []