From 6a1bd39d8ee0155df47557f4fb5db0913e59468f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 13 May 2002 14:55:33 +0000 Subject: [PATCH] SF 554073. Fix typo in error reporting of unrecognized character following IAC. Bugfix candidate if anyone cares. --- Lib/telnetlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py index cdbbd9f5cc7..656e97b7bbc 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