]> granicus.if.org Git - python/commitdiff
SF 554073. Fix typo in error reporting of unrecognized character
authorGuido van Rossum <guido@python.org>
Mon, 13 May 2002 14:55:33 +0000 (14:55 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 13 May 2002 14:55:33 +0000 (14:55 +0000)
following IAC.  Bugfix candidate if anyone cares.

Lib/telnetlib.py

index cdbbd9f5cc744e4da86bbcd697d5fddcd6325c3a..656e97b7bbcdd2dc492b5fc23bc5484e76d6ec34 100644 (file)
@@ -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