def __init__(self, client, sftp=True, auto_close=True): BaseSession.__init__(self, auto_close=auto_close) self.ssh_client = client if sftp: self.sftp = client.open_sftp() else: self.sftp = None
def __init__(self, client, auto_close=True): BaseSession.__init__(self, auto_close=auto_close) self.ssh_client = client self.sftp = client.open_sftp()