~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: John Arbash Meinel
  • Date: 2008-09-04 02:42:34 UTC
  • mto: This revision was merged to the branch mainline in revision 3690.
  • Revision ID: john@arbash-meinel.com-20080904024234-bgqpx4oupmqhv5t9
Properly append the data to the list buffer.

Rather than using [] += 'str', use [].append(str).
It turns out both *work*, but the former adds each character
individually to the list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
329
329
        cur_offset_and_size = offset_stack.next()
330
330
 
331
331
        for data in fp.readv(requests):
332
 
            cur_data += data
 
332
            cur_data.append(data)
333
333
            cur_data_len += len(data)
334
334
 
335
335
            if cur_data_len < cur_coalesced.length: