diff options
author | Guido van Rossum <guido@python.org> | 1998-02-19 21:19:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-02-19 21:19:48 (GMT) |
commit | 2fc4d581baaa1ec1cb68f5d9b093e1d1d03830bc (patch) | |
tree | f00d6e550f804b3be4fcc13b1a272e480e5e6a1c /Lib/telnetlib.py | |
parent | b1908846af1c70e77917d56798daa8242d80d2b5 (diff) | |
download | cpython-2fc4d581baaa1ec1cb68f5d9b093e1d1d03830bc.zip cpython-2fc4d581baaa1ec1cb68f5d9b093e1d1d03830bc.tar.gz cpython-2fc4d581baaa1ec1cb68f5d9b093e1d1d03830bc.tar.bz2 |
Added debug statements to report data actually sent and received on
the socket.
Diffstat (limited to 'Lib/telnetlib.py')
-rw-r--r-- | Lib/telnetlib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py index 4784a69..2012e16 100644 --- a/Lib/telnetlib.py +++ b/Lib/telnetlib.py @@ -188,6 +188,7 @@ class Telnet: """ if IAC in buffer: buffer = string.replace(buffer, IAC, IAC+IAC) + self.msg("send %s", `buffer`) self.sock.send(buffer) def read_until(self, match, timeout=None): @@ -365,6 +366,7 @@ class Telnet: # The buffer size should be fairly small so as to avoid quadratic # behavior in process_rawq() above buf = self.sock.recv(50) + self.msg("recv %s", `buf`) self.eof = (not buf) self.rawq = self.rawq + buf |