From: Guido van Rossum Date: Mon, 13 May 2002 14:55:33 +0000 (+0000) Subject: SF 554073. Fix typo in error reporting of unrecognized character X-Git-Tag: v2.3c1~5678 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a1bd39d8ee0155df47557f4fb5db0913e59468f;p=python SF 554073. Fix typo in error reporting of unrecognized character following IAC. Bugfix candidate if anyone cares. --- diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py index cdbbd9f5cc..656e97b7bb 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