~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-15 23:39:42 UTC
  • mfrom: (2013.1.3 fix-sftp-vendor)
  • Revision ID: pqm@pqm.ubuntu.com-20060915233942-f1b47109b9823f89
(spiv,jam) fallback to Paramiko if ssh is not available

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import select
31
31
import socket
32
32
import stat
33
 
import subprocess
34
33
import sys
35
34
import time
36
35
import urllib
37
36
import urlparse
38
37
import weakref
39
38
 
40
 
from bzrlib.errors import (FileExists, 
 
39
from bzrlib.errors import (FileExists,
41
40
                           NoSuchFile, PathNotChild,
42
41
                           TransportError,
43
 
                           LockError, 
 
42
                           LockError,
44
43
                           PathError,
45
44
                           ParamikoNotPresent,
46
 
                           UnknownSSH,
47
45
                           )
48
46
from bzrlib.osutils import pathjoin, fancy_rename, getcwd
49
47
from bzrlib.trace import mutter, warning
1037
1035
        # Re-import these as locals, so that they're still accessible during
1038
1036
        # interpreter shutdown (when all module globals get set to None, leading
1039
1037
        # to confusing errors like "'NoneType' object has no attribute 'error'".
1040
 
        import socket, errno
1041
1038
        class FakeChannel(object):
1042
1039
            def get_transport(self):
1043
1040
                return self