original_docstring:  connect and use paramiko Transport to negotiate SSH2 across the connection
          
docstring: connect and use paramiko Transport to negotiate SSH2 across the connection
docstring_tokens: connect and use paramiko Transport to negotiate SSH2 across the connection
code: def ssh_connect_client(self, transport):
          """ connect and use paramiko Transport to negotiate SSH2 across the connection
          """
          if (transport in [None,'',""]):
              self.transport = self.ssh_connect_transport()
          try:
              if (self.isSFTP):
                  if (self.sftp == None):
                      self.sftp = paramiko.SFTPClient.from_transport(self.transport)
              elif (self.isSSH):
                  if (self.ssh == None):
                      self.ssh = self.transport
          except Exception, e:
              print '*** Caught exception: %s: %s' % (e.__class__, e)
              traceback.print_exc()
              try:
                  if (self.isSFTP):
                      self.close()
                  elif (self.isSSH):
                      self.close()
              except:
                  pass
              sys.exit(1)
      
          if (self.isSFTP):
              return self.sftp
          return self.ssh
code_tokens: def ssh_connect_client ( self , transport ) : if ( transport in [ None , '' , "" ] ) : self . transport = self . ssh_connect_transport ( ) try : if ( self . isSFTP ) : if ( self . sftp == None ) : self . sftp = paramiko . SFTPClient . from_transport ( self . transport ) elif ( self . isSSH ) : if ( self . ssh == None ) : self . ssh = self . transport except Exception , e : print '*** Caught exception: %s: %s' % ( e . __class__ , e ) traceback . print_exc ( ) try : if ( self . isSFTP ) : self . close ( ) elif ( self . isSSH ) : self . close ( ) except : pass sys . exit ( 1 ) if ( self . isSFTP ) : return self . sftp return self . ssh
short_docstring: connect and use paramiko Transport to negotiate SSH2 across the connection
short_docstring_tokens: connect and use paramiko Transport to negotiate SSH2 across the connection
comment: """ connect and use paramiko Transport to negotiate SSH2 across the connection
          """