~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Aaron Bentley
  • Date: 2007-07-17 13:27:14 UTC
  • mfrom: (2624 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2631.
  • Revision ID: abentley@panoramicfeedback.com-20070717132714-tmzx9khmg9501k51
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
393
393
                f.prefetch()
394
394
            return f
395
395
        except (IOError, paramiko.SSHException), e:
396
 
            self._translate_io_exception(e, path, ': error retrieving')
 
396
            self._translate_io_exception(e, path, ': error retrieving',
 
397
                failure_exc=errors.ReadError)
397
398
 
398
399
    def readv(self, relpath, offsets):
399
400
        """See Transport.readv()"""
682
683
        """Create a directory at the given path."""
683
684
        self._mkdir(self._remote_path(relpath), mode=mode)
684
685
 
685
 
    def _translate_io_exception(self, e, path, more_info='', 
 
686
    def _translate_io_exception(self, e, path, more_info='',
686
687
                                failure_exc=PathError):
687
688
        """Translate a paramiko or IOError into a friendlier exception.
688
689