~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Martin Pool
  • Date: 2006-01-30 11:55:34 UTC
  • mfrom: (1185.62.24 bzr-jam-pending)
  • Revision ID: mbp@sourcefrog.net-20060130115534-d9ca79b5856a08fa
[merge] jam-pending small fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
                           FileExists, 
35
35
                           TransportNotPossible, NoSuchFile, PathNotChild,
36
36
                           TransportError,
37
 
                           LockError
 
37
                           LockError, ParamikoNotPresent
38
38
                           )
39
39
from bzrlib.osutils import pathjoin, fancy_rename
40
40
from bzrlib.trace import mutter, warning, error
43
43
 
44
44
try:
45
45
    import paramiko
46
 
except ImportError:
47
 
    error('The SFTP transport requires paramiko.')
48
 
    raise
 
46
except ImportError, e:
 
47
    raise ParamikoNotPresent(e)
49
48
else:
50
49
    from paramiko.sftp import (SFTP_FLAG_WRITE, SFTP_FLAG_CREATE,
51
50
                               SFTP_FLAG_EXCL, SFTP_FLAG_TRUNC,