Skip to content

Commit c1ce189

Browse files
authored
Fix duplicate definition of ssh.sftp (#2394)
1 parent 5981c72 commit c1ce189

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pwnlib/tubes/ssh.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,6 @@ class ssh(Timeout, Logger):
550550
#: Paramiko SSHClient which backs this object
551551
client = None
552552

553-
#: Paramiko SFTPClient object which is used for file transfers.
554-
#: Set to :const:`None` to disable ``sftp``.
555-
sftp = None
556-
557553
#: PID of the remote ``sshd`` process servicing this connection.
558554
pid = None
559555

@@ -719,6 +715,9 @@ def cwd(self, cwd):
719715

720716
@property
721717
def sftp(self):
718+
"""Paramiko SFTPClient object which is used for file transfers.
719+
Set to :const:`None` to disable ``sftp``.
720+
"""
722721
if not self._tried_sftp:
723722
try:
724723
self._sftp = self.transport.open_sftp_client()

0 commit comments

Comments
 (0)