This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Improved debug output for 'telnetlib'
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: bbrox
Priority: normal Keywords: patch

Created on 2001-04-13 21:09 by bbrox, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
PATCH bbrox, 2001-04-13 21:09 patch to fix the debug 'problem'
Messages (1)
msg36353 - (view) Author: Lionel Ulmer (bbrox) Date: 2001-04-13 21:09
In file telnetlib.py, there is the following line :

  opt = self.rawq_getchar()
  self.msg('IAC %s %d', c == DO and 'DO' or 'DONT', ord(c))

The problem is that it prints 'c' twice (once as DO or
DONT, the other as its numerical value).

For debugging, it's 'opt' that is needed to be printed
(it's the option that corresponds to DO or DONT).

History
Date User Action Args
2022-04-10 16:03:57adminsetgithub: 34322
2001-04-13 21:09:27bbroxcreate