Skip to content

Commit

Permalink
fix bytewarning in doctest by removing print()
Browse files Browse the repository at this point in the history
  • Loading branch information
ksshen0000 committed Feb 18, 2024
1 parent 24c5d5d commit 5536d93
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pwnlib/tubes/wstube.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ class wstube(tube):
b'echo.websocket.events sponsored by Lob.com'
>>> for i in range(3):
... ws.send(b'test')
... print(ws.recv(2))
... print(ws.recv(2))
... ws.recv(2)
... ws.recv(2)
b'te'
b'st'
b'te'
b'st'
b'te'
b'st'
>>> ws.sendline(b'test')
>>> print(ws.recv())
>>> ws.recv()
b'test\\n'
>>> ws.send(b'12345asdfg')
>>> print(ws.recvregex(b'[0-9]{5}'))
>>> ws.recvregex(b'[0-9]{5}')
b'12345'
>>> print(ws.recv())
>>> ws.recv()
b'asdfg'
>>> ws.close()
"""
Expand Down

0 comments on commit 5536d93

Please sign in to comment.