summaryrefslogtreecommitdiffstats
path: root/Lib/telnetlib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-05-13 14:55:33 (GMT)
committerGuido van Rossum <guido@python.org>2002-05-13 14:55:33 (GMT)
commit6a1bd39d8ee0155df47557f4fb5db0913e59468f (patch)
tree6e12829349aa1d989e5be8ed38a83087f646eeab /Lib/telnetlib.py
parent1755ad9b026d63bbff707e0d33b738e18499b3e9 (diff)
downloadcpython-6a1bd39d8ee0155df47557f4fb5db0913e59468f.zip
cpython-6a1bd39d8ee0155df47557f4fb5db0913e59468f.tar.gz
cpython-6a1bd39d8ee0155df47557f4fb5db0913e59468f.tar.bz2
SF 554073. Fix typo in error reporting of unrecognized character
following IAC. Bugfix candidate if anyone cares.
Diffstat (limited to 'Lib/telnetlib.py')
-rw-r--r--Lib/telnetlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py
index cdbbd9f..656e97b 100644
--- a/Lib/telnetlib.py
+++ b/Lib/telnetlib.py
@@ -421,7 +421,7 @@ class Telnet:
else:
self.sock.sendall(IAC + DONT + opt)
else:
- self.msg('IAC %d not recognized' % ord(opt))
+ self.msg('IAC %d not recognized' % ord(c))
except EOFError: # raised by self.rawq_getchar()
pass
self.cookedq = self.cookedq + buf