~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Martin Pool
  • Date: 2008-11-11 00:57:17 UTC
  • mfrom: (3815.3.2 1.9)
  • mto: This revision was merged to the branch mainline in revision 3827.
  • Revision ID: mbp@sourcefrog.net-20081111005717-m9qvlrdwqg8obh1q
Merge 1.9final and its sftp fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
            # get the previous node
296
296
            while True:
297
297
                idx = bisect.bisect_left(data_chunks, (cur_offset,))
298
 
                if data_chunks[idx][0] == cur_offset: # The data starts here
 
298
                if idx < len(data_chunks) and data_chunks[idx][0] == cur_offset:
 
299
                    # The data starts here
299
300
                    data = data_chunks[idx][1][:cur_size]
300
301
                elif idx > 0:
301
302
                    # The data is in a portion of a previous page