Skip to content

Commit 5536d93

Browse files
committed
fix bytewarning in doctest by removing print()
1 parent 24c5d5d commit 5536d93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pwnlib/tubes/wstube.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@ class wstube(tube):
3636
b'echo.websocket.events sponsored by Lob.com'
3737
>>> for i in range(3):
3838
... ws.send(b'test')
39-
... print(ws.recv(2))
40-
... print(ws.recv(2))
39+
... ws.recv(2)
40+
... ws.recv(2)
4141
b'te'
4242
b'st'
4343
b'te'
4444
b'st'
4545
b'te'
4646
b'st'
4747
>>> ws.sendline(b'test')
48-
>>> print(ws.recv())
48+
>>> ws.recv()
4949
b'test\\n'
5050
>>> ws.send(b'12345asdfg')
51-
>>> print(ws.recvregex(b'[0-9]{5}'))
51+
>>> ws.recvregex(b'[0-9]{5}')
5252
b'12345'
53-
>>> print(ws.recv())
53+
>>> ws.recv()
5454
b'asdfg'
5555
>>> ws.close()
5656
"""

0 commit comments

Comments
 (0)