Skip to content

Commit

Permalink
[docs] Add doctest for ssh.process(..., timeout=)
Browse files Browse the repository at this point in the history
  • Loading branch information
heapcrash committed Jun 23, 2020
1 parent 89d73c8 commit 642fcb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pwnlib/tubes/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,10 @@ def process(self, argv=None, executable=None, tty=True, cwd=None, env=None, time
>>> s.process('echo hello', shell=True).recvall()
b'hello\n'
>>> io = s.process(['cat'], timeout=5)
>>> io.recvline()
b''
"""
if not argv and not executable:
self.error("Must specify argv or executable")
Expand Down

0 comments on commit 642fcb0

Please sign in to comment.