[Patches] [ python-Patches-416023 ] Improved debug output for 'telnetlib'

noreply@sourceforge.net noreply@sourceforge.net
Fri, 13 Apr 2001 14:11:12 -0700


Patches item #416023, was updated on 2001-04-13 14:09
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=416023&group_id=5470

Category: library
Group: None
Status: Open
Priority: 5
Submitted By: Lionel Ulmer (bbrox)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improved debug output for 'telnetlib'

Initial Comment:
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).



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=416023&group_id=5470